From ba9289e1a3598f43b5104a71f8a50c3b8c7b9b9c Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 15 May 2013 23:05:20 +0200 Subject: [PATCH] Added /setl to set the amount of world edit blocks that can be used --- .../Commands/Command_setl.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/me/StevenLawson/TotalFreedomMod/Commands/Command_setl.java diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_setl.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_setl.java new file mode 100644 index 00000000..d6ecde72 --- /dev/null +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_setl.java @@ -0,0 +1,19 @@ +package me.StevenLawson.TotalFreedomMod.Commands; + +import org.bukkit.command.Command; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.BOTH) +@CommandParameters(description = "Sets everyone World Edit Limit to 500.", usage = "/") +public class Command_setl extends TFM_Command +{ + @Override + public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) + { + server.dispatchCommand(sender, "wildcard gcmd ? /limit 500"); + TFM_Util.adminAction(sender.getName(), "Setting all online players block limit to 500.", true); + + return true; + } +}