diff --git a/src/com/wimbli/WorldBorder/BorderCheckTask.java b/src/com/wimbli/WorldBorder/BorderCheckTask.java index d042c44..67f236b 100644 --- a/src/com/wimbli/WorldBorder/BorderCheckTask.java +++ b/src/com/wimbli/WorldBorder/BorderCheckTask.java @@ -47,7 +47,7 @@ public class BorderCheckTask implements Runnable return null; // if player has "worldborder.bypass" permission, allow them beyond border - if (Config.HasPermission(player, "bypass")) + if (Config.HasPermission(player, "bypass", false)) return null; Location newLoc = newLocation(player, loc, border); diff --git a/src/com/wimbli/WorldBorder/Config.java b/src/com/wimbli/WorldBorder/Config.java index 78f86d7..e48db01 100644 --- a/src/com/wimbli/WorldBorder/Config.java +++ b/src/com/wimbli/WorldBorder/Config.java @@ -280,6 +280,10 @@ public class Config public static boolean HasPermission(Player player, String request) + { + return HasPermission(player, request, true); + } + public static boolean HasPermission(Player player, String request, boolean notify) { if (player == null) // console, always permitted return true; @@ -287,7 +291,9 @@ public class Config if (player.hasPermission("worldborder." + request)) // built-in Bukkit superperms return true; - player.sendMessage("You do not have sufficient permissions."); + if (notify) + player.sendMessage("You do not have sufficient permissions."); + return false; } diff --git a/src/plugin.yml b/src/plugin.yml index b7cbdb1..ab4864c 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -107,4 +107,4 @@ permissions: default: op worldborder.bypass: description: Can go beyond the border without being knocked back - default: none + default: false