updated permissions example in config.yml, fixed typo in CommandTpRegion, removed debug output in RegionCommandHandler

This commit is contained in:
Redecouverte 2011-02-28 00:49:06 +01:00
parent 442521a73c
commit 0d80265ff2
4 changed files with 11 additions and 3 deletions

View File

@ -107,3 +107,9 @@ blacklist:
open-files: 10 open-files: 10
# For permissions, see http://wiki.sk89q.com/wiki/WorldGuard/Permissions/Bukkit # For permissions, see http://wiki.sk89q.com/wiki/WorldGuard/Permissions/Bukkit
permissions:
users:
sk89q:
permissions:
- worldguard.region.*
- worldgurad.god

View File

@ -88,6 +88,9 @@ private WorldGuardWorldConfiguration createWorldConfig(String worldName) {
} }
public void onEnable() { public void onEnable() {
wg.getDataFolder().mkdirs();
checkOldConfigFiles(); checkOldConfigFiles();
checkOldCSVDB(); checkOldCSVDB();
@ -402,6 +405,7 @@ public void forgetPlayerAllBlacklists(LocalPlayer player) {
bl.forgetPlayer(player); bl.forgetPlayer(player);
} }
} }
} }
public WorldGuardPlugin getWorldGuardPlugin() public WorldGuardPlugin getWorldGuardPlugin()

View File

@ -54,7 +54,7 @@ public boolean handle(CommandSender sender, String senderName, String command, S
if (!region.isOwner(lPlayer)) { if (!region.isOwner(lPlayer)) {
cfg.checkPermission(player, "tpregion.override"); cfg.checkPermission(player, "tpregion.override");
} }
} else if (flagright.equals("meber")) { } else if (flagright.equals("member")) {
if (!region.isMember(lPlayer)) { if (!region.isMember(lPlayer)) {
cfg.checkPermission(player, "tpregion.override"); cfg.checkPermission(player, "tpregion.override");
} }

View File

@ -104,8 +104,6 @@ public boolean handle(CommandSender sender, String senderName, String command, S
} }
} }
System.out.println(subCommand);
Server server = cfg.getWorldGuardPlugin().getServer(); Server server = cfg.getWorldGuardPlugin().getServer();
if (server.getWorld(worldName) == null) { if (server.getWorld(worldName) == null) {
sender.sendMessage("Invalid world specified."); sender.sendMessage("Invalid world specified.");