forked from SteamWar/SteamWar
Add /build stop command
This commit is contained in:
@@ -197,6 +197,18 @@ public class BauCommand extends SWCommand {
|
||||
};
|
||||
}
|
||||
|
||||
@Register("stop")
|
||||
public void stop(PlayerChatter sender) {
|
||||
VelocityCore.schedule(() -> {
|
||||
sender.system("BAU_STOPPING");
|
||||
Bauserver subserver = Bauserver.get(sender.user().getUUID());
|
||||
if(subserver != null)
|
||||
subserver.stop();
|
||||
|
||||
sender.system("BAU_STOPPED");
|
||||
}).schedule();
|
||||
}
|
||||
|
||||
@Register("resetall")
|
||||
@Register("delete")
|
||||
public void delete(PlayerChatter sender, @OptionalValue(value = "", onlyUINIG = true) ServerVersion version) {
|
||||
|
||||
@@ -92,6 +92,7 @@ public class HelpCommand extends SWCommand {
|
||||
"HELP_BAU_SET_SPECTATOR", "/build setSpectator ",
|
||||
"HELP_BAU_SET_BUILDER", "/build setBuilder ",
|
||||
"HELP_BAU_SET_SUPERVISOR", "/build setSupervisor ",
|
||||
"HELP_BAU_STOP", "/build stop",
|
||||
"HELP_BAU_DELETE", "/build delete ",
|
||||
"HELP_BAU_TESTARENA", "/build testarena ",
|
||||
"HELP_BAU_LOCK", "/build lock ",
|
||||
|
||||
Reference in New Issue
Block a user