mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-06-25 08:40:37 +00:00
Update WorldRestrictions.java
This commit is contained in:
parent
681695150a
commit
39d5b610a1
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue