Update WorldRestrictions.java

This commit is contained in:
speed 2020-12-12 12:59:19 -05:00
parent 681695150a
commit 39d5b610a1

View File

@ -132,7 +132,7 @@ public class WorldRestrictions extends FreedomService
{ {
/* This is a very poor way of blocking WorldEdit commands, all the methods I know of /* This is a very poor way of blocking WorldEdit commands, all the methods I know of
for obtaining a list of a plugin's commands are returning null for world edit. */ for obtaining a list of a plugin's commands are returning null for world edit. */
String allowed = player.getWorld().equals(plugin.wm.adminworld.getWorld()) ? "Admin" : "Master Builders"; String allowed = player.getWorld().equals(plugin.wm.adminworld.getWorld()) ? "Admins" : "Master Builders";
if (command.startsWith("/") || BLOCKED_WORLDEDIT_COMMANDS.contains(command)) if (command.startsWith("/") || BLOCKED_WORLDEDIT_COMMANDS.contains(command))
{ {
@ -172,4 +172,4 @@ public class WorldRestrictions extends FreedomService
regionManager.addRegion(region); regionManager.addRegion(region);
} }
} }