mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Increase WorldEdit limit
This commit is contained in:
parent
1ff7d7c8cc
commit
40362eb790
@ -62,12 +62,12 @@ public class WorldEditListener extends PluginListener<TotalFreedomMod>
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
if (event.getLimit() < 0 || event.getLimit() > 10000)
|
||||
if (event.getLimit() < 0 || event.getLimit() > 200000)
|
||||
{
|
||||
player.setOp(false);
|
||||
FUtil.bcastMsg(event.getPlayer().getName() + " tried to set their WorldEdit limit to " + event.getLimit() + " and has been de-opped", ChatColor.RED);
|
||||
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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,12 +15,12 @@ public class Command_setlimit extends FreedomCommand
|
||||
@Override
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user