Add fountain reset command

This commit is contained in:
Shaun Bennett 2016-04-26 15:33:52 +10:00
parent cabf4c4c8b
commit 4a8c38e1c8
3 changed files with 32 additions and 0 deletions

View File

@ -92,4 +92,10 @@ public class Fountain
{
return _counter.getCount();
}
public void reset()
{
_counter.reset();
updateVisuals();
}
}

View File

@ -16,6 +16,7 @@ public class FountainCommand extends MultiCommandBase<FountainManager>
AddCommand(new AddCommand(plugin));
AddCommand(new GuiCommand(plugin));
AddCommand(new ResetCommand(plugin));
}
@Override

View File

@ -0,0 +1,25 @@
package mineplex.core.brawl.fountain.command;
import mineplex.core.brawl.fountain.FountainManager;
import mineplex.core.command.CommandBase;
import mineplex.core.common.Rank;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilPlayer;
import org.bukkit.entity.Player;
/**
* @author Shaun Bennett
*/
public class ResetCommand extends CommandBase<FountainManager>
{
public ResetCommand(FountainManager plugin)
{
super(plugin, Rank.DEVELOPER, "reset");
}
@Override
public void Execute(Player caller, String[] args)
{
Plugin.getGemFountain().reset();
}
}