Added /setl to set the amount of world edit blocks that can be used

This commit is contained in:
Ryan 2013-05-15 23:05:20 +02:00
parent e82e88f48f
commit ba9289e1a3

View File

@ -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 = "/<command>")
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;
}
}