Add fountain reset command
This commit is contained in:
parent
cabf4c4c8b
commit
4a8c38e1c8
@ -92,4 +92,10 @@ public class Fountain
|
||||
{
|
||||
return _counter.getCount();
|
||||
}
|
||||
|
||||
public void reset()
|
||||
{
|
||||
_counter.reset();
|
||||
updateVisuals();
|
||||
}
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ public class FountainCommand extends MultiCommandBase<FountainManager>
|
||||
|
||||
AddCommand(new AddCommand(plugin));
|
||||
AddCommand(new GuiCommand(plugin));
|
||||
AddCommand(new ResetCommand(plugin));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user