Myadmin tags and misc improvements

This commit is contained in:
ZeroEpoch1969
2018-02-21 18:22:13 -07:00
parent c8683ea489
commit 2bffcef9a9
8 changed files with 78 additions and 11 deletions

View File

@ -8,7 +8,7 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH)
@CommandParameters(description = "Op everyone on the server, optionally change everyone's gamemode at the same time.", usage = "/<command> [-c | -s]")
@CommandParameters(description = "Op everyone on the server, optionally change everyone's gamemode at the same time.", usage = "/<command> [-c | -s | -a]")
public class Command_opall extends FreedomCommand
{
@ -31,6 +31,11 @@ public class Command_opall extends FreedomCommand
doSetGamemode = true;
targetGamemode = GameMode.SURVIVAL;
}
else if (args[0].equals("-a"))
{
doSetGamemode = true;
targetGamemode = GameMode.ADVENTURE;
}
}
for (Player player : server.getOnlinePlayers())