diff --git a/src/main/java/com/wimbli/WorldBorder/WBCommand.java b/src/main/java/com/wimbli/WorldBorder/WBCommand.java index eab3e5d..432933e 100644 --- a/src/main/java/com/wimbli/WorldBorder/WBCommand.java +++ b/src/main/java/com/wimbli/WorldBorder/WBCommand.java @@ -42,11 +42,11 @@ public class WBCommand implements CommandExecutor addCmd(new CmdKnockback()); // 1 addCmd(new CmdWrap()); // 1 addCmd(new CmdWhoosh()); // 1 - addCmd(new CmdPreventPlace()); // 1 addCmd(new CmdGetmsg()); // 1 addCmd(new CmdSetmsg()); // 1 addCmd(new CmdWshape()); // 3 //----- + addCmd(new CmdPreventPlace()); // 1 addCmd(new CmdDelay()); // 1 addCmd(new CmdDynmap()); // 1 addCmd(new CmdDynmapmsg()); // 1 @@ -54,8 +54,8 @@ public class WBCommand implements CommandExecutor addCmd(new CmdFillautosave()); // 1 addCmd(new CmdPortal()); // 1 addCmd(new CmdDenypearl()); // 1 - addCmd(new CmdReload()); // 1 //----- + addCmd(new CmdReload()); // 1 addCmd(new CmdDebug()); // 1 // this is the default command, which shows command example pages; should be last just in case diff --git a/src/main/java/com/wimbli/WorldBorder/cmd/CmdPreventPlace.java b/src/main/java/com/wimbli/WorldBorder/cmd/CmdPreventPlace.java index f81da6f..429d920 100644 --- a/src/main/java/com/wimbli/WorldBorder/cmd/CmdPreventPlace.java +++ b/src/main/java/com/wimbli/WorldBorder/cmd/CmdPreventPlace.java @@ -4,9 +4,7 @@ import java.util.List; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import org.bukkit.event.HandlerList; -import com.wimbli.WorldBorder.BlockPlaceListener; import com.wimbli.WorldBorder.Config; import com.wimbli.WorldBorder.WorldBorder; @@ -17,14 +15,14 @@ public class CmdPreventPlace extends WBCmd { minParams = 0; maxParams = 1; - addCmdExample(nameEmphasized() + " - turn prevent-block-place on or off."); - helpText = "Default value: off. This will prevent players from placing blocks outside the world's border."; + addCmdExample(nameEmphasized() + " - stop block placement past border."); + helpText = "Default value: off. When enabled, this setting will prevent players from placing blocks outside the world's border."; } @Override public void cmdStatus(CommandSender sender) { - sender.sendMessage(C_HEAD + "preventblockplace is " + enabledColored(Config.preventBlockPlace()) + C_HEAD + "."); + sender.sendMessage(C_HEAD + "Prevention of block placement outside the border is " + enabledColored(Config.preventBlockPlace()) + C_HEAD + "."); } @Override diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 8e2a3e1..05fb0ae 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -41,6 +41,7 @@ commands: / fillautosave - world save interval for Fill process. / portal - turn portal redirection on or off. / denypearl - stop ender pearls thrown past the border. + / preventblockplace - stop block placement past border. / reload - re-load data from config.yml. / debug - turn debug mode on or off. permissions: @@ -62,6 +63,7 @@ permissions: worldborder.knockback: true worldborder.list: true worldborder.portal: true + worldborder.preventblockplace: true worldborder.radius: true worldborder.reload: true worldborder.remount: true @@ -117,6 +119,9 @@ permissions: worldborder.portal: description: Can enable/disable portal redirection to be inside border default: op + worldborder.preventblockplace: + description: Can prevent placement of blocks outside the border + default: op worldborder.radius: description: Can set the radius of an existing border default: op