mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 05:35:37 +01:00
*Forgot these
This commit is contained in:
parent
3d924f22b5
commit
dba271ba78
@ -58,8 +58,8 @@ public class InspectBrush extends BrushTool implements DoubleActionTraceTool {
|
||||
}
|
||||
|
||||
public boolean perform(final Player player, LocalSession session, boolean rightClick) {
|
||||
if (!session.isToolControlEnabled() || !player.hasPermission("worldedit.brush.inspect")) {
|
||||
BBC.NO_PERM.send(player, "worldedit.brush.inspect");
|
||||
if (!session.isToolControlEnabled() || !player.hasPermission("worldedit.tool.inspect")) {
|
||||
BBC.NO_PERM.send(player, "worldedit.tool.inspect");
|
||||
return false;
|
||||
}
|
||||
if (!Settings.HISTORY.USE_DATABASE) {
|
||||
@ -111,6 +111,6 @@ public class InspectBrush extends BrushTool implements DoubleActionTraceTool {
|
||||
|
||||
@Override
|
||||
public boolean canUse(Actor actor) {
|
||||
return actor.hasPermission("worldedit.brush.inspect");
|
||||
return actor.hasPermission("worldedit.tool.inspect");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user