mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-03 01:19:42 +01:00
updated permissions example in config.yml, fixed typo in CommandTpRegion, removed debug output in RegionCommandHandler
This commit is contained in:
parent
442521a73c
commit
0d80265ff2
@ -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
|
||||||
|
@ -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()
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
@ -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.");
|
||||||
|
Loading…
Reference in New Issue
Block a user