From bc185771882a353da459cb3503bcb9307a71820a Mon Sep 17 00:00:00 2001 From: Dave Akers Date: Sat, 1 Sep 2018 14:59:05 -0500 Subject: [PATCH] forgot the '.' --- src/main/java/bentobox/addon/warps/WarpSignsListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/bentobox/addon/warps/WarpSignsListener.java b/src/main/java/bentobox/addon/warps/WarpSignsListener.java index cd8a87f..0b920bc 100644 --- a/src/main/java/bentobox/addon/warps/WarpSignsListener.java +++ b/src/main/java/bentobox/addon/warps/WarpSignsListener.java @@ -68,7 +68,7 @@ public class WarpSignsListener implements Listener { // Welcome sign detected - check to see if it is // this player's sign if ((list.containsKey(user.getUniqueId()) && list.get(user.getUniqueId()).equals(s.getLocation())) - || user.isOp() || user.hasPermission(addon.getPermPrefix(e.getBlock().getWorld()) + "mod.removesign")) { + || user.isOp() || user.hasPermission(addon.getPermPrefix(e.getBlock().getWorld()) + ".mod.removesign")) { addon.getWarpSignsManager().removeWarp(s.getLocation()); Bukkit.getPluginManager().callEvent(new WarpRemoveEvent(addon, s.getLocation(), user.getUniqueId())); } else { @@ -96,9 +96,9 @@ public class WarpSignsListener implements Listener { // Check if someone is changing their own sign if (title.equalsIgnoreCase(addon.getConfig().getString("welcomeLine"))) { // Welcome sign detected - check permissions - if (!(user.hasPermission(addon.getPermPrefix(b.getWorld()) + "island.addwarp"))) { + if (!(user.hasPermission(addon.getPermPrefix(b.getWorld()) + ".island.addwarp"))) { user.sendMessage("warps.error.no-permission"); - user.sendMessage("general.errors.you-need", "[permission]", addon.getPermPrefix(b.getWorld()) + "island.addwarp"); + user.sendMessage("general.errors.you-need", "[permission]", addon.getPermPrefix(b.getWorld()) + ".island.addwarp"); return; } long level = plugin.getAddonsManager().getAddonByName(LEVEL_PLUGIN_NAME).map(l -> (Level)l)