Increase WorldEdit limit

This commit is contained in:
ZeroEpoch1969 2018-05-18 19:08:08 -07:00
parent 1ff7d7c8cc
commit 40362eb790
No known key found for this signature in database
GPG Key ID: E0AAB104FB9F8FDF
2 changed files with 4 additions and 4 deletions

View File

@ -62,12 +62,12 @@ public class WorldEditListener extends PluginListener<TotalFreedomMod>
event.setCancelled(true); event.setCancelled(true);
} }
if (event.getLimit() < 0 || event.getLimit() > 10000) if (event.getLimit() < 0 || event.getLimit() > 200000)
{ {
player.setOp(false); player.setOp(false);
FUtil.bcastMsg(event.getPlayer().getName() + " tried to set their WorldEdit limit to " + event.getLimit() + " and has been de-opped", ChatColor.RED); FUtil.bcastMsg(event.getPlayer().getName() + " tried to set their WorldEdit limit to " + event.getLimit() + " and has been de-opped", ChatColor.RED);
event.setCancelled(true); event.setCancelled(true);
player.sendMessage(ChatColor.RED + "You cannot set your limit higher than 10000 or to -1!"); player.sendMessage(ChatColor.RED + "You cannot set your limit higher than 200000 or to -1!");
} }
} }

View File

@ -15,12 +15,12 @@ public class Command_setlimit extends FreedomCommand
@Override @Override
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{ {
int amount = 2500; int amount = 100000;
if (args.length > 0) if (args.length > 0)
{ {
try try
{ {
amount = Math.max(1, Math.min(10000, Integer.parseInt(args[0]))); amount = Math.max(1, Math.min(2000000, Integer.parseInt(args[0])));
} }
catch (NumberFormatException ex) catch (NumberFormatException ex)
{ {