From c950b0021fc90a22bc0a9d8bb74eb937b57f62d5 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 2 Nov 2016 04:27:52 +1100 Subject: [PATCH] Notify inbox permission --- .../plot/object/comment/CommentInbox.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/object/comment/CommentInbox.java b/Core/src/main/java/com/intellectualcrafters/plot/object/comment/CommentInbox.java index 61d047b47..155345207 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/object/comment/CommentInbox.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/object/comment/CommentInbox.java @@ -14,8 +14,8 @@ public abstract class CommentInbox { public abstract String toString(); public boolean canRead(Plot plot, PlotPlayer player) { - if (Permissions.hasPermission(player, "plots.inbox.read." + toString())) { - if (plot.isOwner(player.getUUID()) || Permissions.hasPermission(player, "plots.inbox.read." + toString() + ".other")) { + if (Permissions.hasPermission(player, "plots.inbox.read." + toString(), true)) { + if (plot.isOwner(player.getUUID()) || Permissions.hasPermission(player, "plots.inbox.read." + toString() + ".other", true)) { return true; } } @@ -24,15 +24,15 @@ public abstract class CommentInbox { public boolean canWrite(Plot plot, PlotPlayer player) { if (plot == null) { - return Permissions.hasPermission(player, "plots.inbox.write." + toString()); + return Permissions.hasPermission(player, "plots.inbox.write." + toString(), true); } - return Permissions.hasPermission(player, "plots.inbox.write." + toString()) && (plot.isOwner(player.getUUID()) || Permissions - .hasPermission(player, "plots.inbox.write." + toString() + ".other")); + return Permissions.hasPermission(player, "plots.inbox.write." + toString(), true) && (plot.isOwner(player.getUUID()) || Permissions + .hasPermission(player, "plots.inbox.write." + toString() + ".other", true)); } public boolean canModify(Plot plot, PlotPlayer player) { - if (Permissions.hasPermission(player, "plots.inbox.modify." + toString())) { - if (plot.isOwner(player.getUUID()) || Permissions.hasPermission(player, "plots.inbox.modify." + toString() + ".other")) { + if (Permissions.hasPermission(player, "plots.inbox.modify." + toString(), true)) { + if (plot.isOwner(player.getUUID()) || Permissions.hasPermission(player, "plots.inbox.modify." + toString() + ".other", true)) { return true; } }