mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Update WorldRestrictions.java
This commit is contained in:
parent
681695150a
commit
39d5b610a1
@ -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
|
||||
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))
|
||||
{
|
||||
@ -172,4 +172,4 @@ public class WorldRestrictions extends FreedomService
|
||||
|
||||
regionManager.addRegion(region);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user