mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-15 20:54:03 +00:00
Update WorldRestrictions.java
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user