Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You are not allowed to use {block} #26

Open
ghost opened this issue Nov 12, 2016 · 0 comments
Open

You are not allowed to use {block} #26

ghost opened this issue Nov 12, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 12, 2016

Ok, so I noticed in the code for handling disallowed blocks that it had a check for admin.
The codes reads:

if (actor instanceof Player && worldEdit.getConfiguration().disallowedBlocks.contains(blockId) && !WorldEditHandler.isSuperAdmin((Player) actor)) { throw new DisallowedUsageException("You are not allowed to use '" + input + "'"); }

However, the check for admin does not work, and blocks the block for ALL players including staff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant