2015-10-19 17:43:46 +00:00
|
|
|
package me.totalfreedom.totalfreedommod.commands;
|
2013-05-15 21:05:20 +00:00
|
|
|
|
2015-11-15 23:32:04 +00:00
|
|
|
import me.totalfreedom.totalfreedommod.rank.PlayerRank;
|
2015-10-19 17:43:46 +00:00
|
|
|
import me.totalfreedom.totalfreedommod.util.FUtil;
|
2013-05-15 21:05:20 +00:00
|
|
|
import org.bukkit.command.Command;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
2015-10-19 17:43:46 +00:00
|
|
|
@CommandPermissions(level = PlayerRank.SUPER_ADMIN, source = SourceType.BOTH)
|
2013-07-02 23:08:31 +00:00
|
|
|
@CommandParameters(description = "Sets everyone's Worldedit block modification limit to 500.", usage = "/<command>")
|
2015-10-19 17:43:46 +00:00
|
|
|
public class Command_setl extends FreedomCommand
|
2013-05-15 21:05:20 +00:00
|
|
|
{
|
2015-11-22 18:26:47 +00:00
|
|
|
|
2013-05-15 21:05:20 +00:00
|
|
|
@Override
|
2015-11-22 18:26:47 +00:00
|
|
|
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
2013-05-15 21:05:20 +00:00
|
|
|
{
|
2015-10-19 17:43:46 +00:00
|
|
|
FUtil.adminAction(sender.getName(), "Setting everyone's Worldedit block modification limit to 2500.", true);
|
2013-08-14 14:01:42 +00:00
|
|
|
for (final Player player : server.getOnlinePlayers())
|
2013-07-02 23:08:31 +00:00
|
|
|
{
|
2015-10-19 17:43:46 +00:00
|
|
|
plugin.web.setLimit(player, 2500);
|
2013-07-02 23:08:31 +00:00
|
|
|
}
|
2013-05-15 21:05:20 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|