minor tidying of preventblockplace

This commit is contained in:
Brettflan 2014-11-26 04:14:09 -06:00
parent d2fbd83bd5
commit 211a40f893
3 changed files with 10 additions and 7 deletions

View File

@ -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

View File

@ -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() + "<on|off> - 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() + "<on|off> - 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

View File

@ -41,6 +41,7 @@ commands:
/<command> fillautosave <seconds> - world save interval for Fill process.
/<command> portal <on/off> - turn portal redirection on or off.
/<command> denypearl <on/off> - stop ender pearls thrown past the border.
/<command> preventblockplace <on|off> - stop block placement past border.
/<command> reload - re-load data from config.yml.
/<command> debug <on/off> - 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