forgot the '.'
This commit is contained in:
parent
b89d792b5e
commit
bc18577188
|
@ -68,7 +68,7 @@ public class WarpSignsListener implements Listener {
|
||||||
// Welcome sign detected - check to see if it is
|
// Welcome sign detected - check to see if it is
|
||||||
// this player's sign
|
// this player's sign
|
||||||
if ((list.containsKey(user.getUniqueId()) && list.get(user.getUniqueId()).equals(s.getLocation()))
|
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());
|
addon.getWarpSignsManager().removeWarp(s.getLocation());
|
||||||
Bukkit.getPluginManager().callEvent(new WarpRemoveEvent(addon, s.getLocation(), user.getUniqueId()));
|
Bukkit.getPluginManager().callEvent(new WarpRemoveEvent(addon, s.getLocation(), user.getUniqueId()));
|
||||||
} else {
|
} else {
|
||||||
|
@ -96,9 +96,9 @@ public class WarpSignsListener implements Listener {
|
||||||
// Check if someone is changing their own sign
|
// Check if someone is changing their own sign
|
||||||
if (title.equalsIgnoreCase(addon.getConfig().getString("welcomeLine"))) {
|
if (title.equalsIgnoreCase(addon.getConfig().getString("welcomeLine"))) {
|
||||||
// Welcome sign detected - check permissions
|
// 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("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;
|
return;
|
||||||
}
|
}
|
||||||
long level = plugin.getAddonsManager().getAddonByName(LEVEL_PLUGIN_NAME).map(l -> (Level)l)
|
long level = plugin.getAddonsManager().getAddonByName(LEVEL_PLUGIN_NAME).map(l -> (Level)l)
|
||||||
|
|
Loading…
Reference in New Issue