public ScoreboardCommand() { super("scoreboard"); this.description = "Scoreboard control"; this.usageMessage = "/scoreboard"; this.setPermission("bukkit.command.scoreboard"); }
public ListCommand() { super("list"); this.description = "Lists all online players"; this.usageMessage = "/list"; this.setPermission("bukkit.command.list"); }
/** * Stops accepting any enchantment registrations */ public static void stopAcceptingRegistrations() { acceptingNew = false; EnchantCommand.buildEnchantments(); }
private void setDefaultCommands() { register("bukkit", new SaveCommand()); register("bukkit", new SaveOnCommand()); register("bukkit", new SaveOffCommand()); register("bukkit", new StopCommand()); register("bukkit", new VersionCommand("version")); register("bukkit", new ReloadCommand("reload")); register("bukkit", new PluginsCommand("plugins")); register("bukkit", new TimingsCommand("timings")); }
public EffectCommand() { super("effect"); this.description = "Adds/Removes effects on players"; this.usageMessage = "/effect <player> <effect|clear> [seconds] [amplifier]"; this.setPermission("bukkit.command.effect"); }
public SpreadPlayersCommand() { super("spreadplayers"); this.description = "Spreads players around a point"; this.usageMessage = "/spreadplayers <x> <z> <spreadDistance> <maxRange> <respectTeams true|false> <player ...>"; this.setPermission("bukkit.command.spreadplayers"); }
public SetWorldSpawnCommand() { super("setworldspawn"); this.description = "Sets a worlds's spawn point. If no coordinates are specified, the player's coordinates will be used."; this.usageMessage = "/setworldspawn OR /setworldspawn <x> <y> <z>"; this.setPermission("bukkit.command.setworldspawn"); }
public WhitelistCommand() { super("whitelist"); this.description = "Manages the list of players allowed to use this server"; this.usageMessage = "/whitelist (add|remove) <player>\n/whitelist (on|off|list|reload)"; this.setPermission("bukkit.command.whitelist.reload;bukkit.command.whitelist.enable;bukkit.command.whitelist.disable;bukkit.command.whitelist.list;bukkit.command.whitelist.add;bukkit.command.whitelist.remove"); }
public TeleportCommand() { super("tp"); this.description = "Teleports the given player (or yourself) to another player or coordinates"; this.usageMessage = "/tp [player] <target> and/or <x> <y> <z>"; this.setPermission("bukkit.command.teleport"); }
public DefaultGameModeCommand() { super("defaultgamemode"); this.description = "Set the default gamemode"; this.usageMessage = "/defaultgamemode <mode>"; this.setPermission("bukkit.command.defaultgamemode"); }
public BanListCommand() { super("banlist"); this.description = "View all players banned from this server"; this.usageMessage = "/banlist [ips|players]"; this.setPermission("bukkit.command.ban.list"); }
public ToggleDownfallCommand() { super("toggledownfall"); this.description = "Toggles rain on/off on a given world"; this.usageMessage = "/toggledownfall"; this.setPermission("bukkit.command.toggledownfall"); }
public TimingsCommand(String name) { super(name); this.description = "Records timings for all plugin events"; this.usageMessage = "/timings <reset|merged|separate>"; this.setPermission("bukkit.command.timings"); }
public SaveCommand() { super("save-all"); this.description = "Saves the server to disk"; this.usageMessage = "/save-all"; this.setPermission("bukkit.command.save.perform"); }
public KillCommand() { super("kill"); this.description = "Commits suicide, only usable as a player"; this.usageMessage = "/kill"; this.setPermission("bukkit.command.kill"); }
public PardonCommand() { super("pardon"); this.description = "Allows the specified player to use this server"; this.usageMessage = "/pardon <player>"; this.setPermission("bukkit.command.unban.player"); }
public ClearCommand() { super("clear"); this.description = "Clears the player's inventory. Can specify item and data filters too."; this.usageMessage = "/clear <player> [item] [data]"; this.setPermission("bukkit.command.clear"); }
public EnchantCommand() { super("enchant"); this.description = "Adds enchantments to the item the player is currently holding. Specify 0 for the level to remove an enchantment. Specify force to ignore normal enchantment restrictions"; this.usageMessage = "/enchant <player> <enchantment> [level|max|0] [force]"; this.setPermission("bukkit.command.enchant"); }
public GameRuleCommand() { super("gamerule"); this.description = "Sets a server's game rules"; this.usageMessage = "/gamerule <rule name> <value> OR /gamerule <rule name>"; this.setPermission("bukkit.command.gamerule"); }
public BanCommand() { super("ban"); this.description = "Prevents the specified player from using this server"; this.usageMessage = "/ban <player> [reason ...]"; this.setPermission("bukkit.command.ban.player"); }