Compare commits

..
4 Commits
Author SHA1 Message Date
sk89q 5be31ebb5c Fixed /god not working for others. 2011-01-21 19:49:22 -08:00
sk89q 962394b2ba Updated for 3.0b2. 2011-01-21 19:45:41 -08:00
sk89q 7cf7c5f44c Fixed issue where permissions were not loaded. 2011-01-21 19:45:06 -08:00
sk89q 5b494a09ec Fixed permissions for /stack, /locate, and /reloadwg. 2011-01-21 17:53:06 -08:00
2 changed files with 9 additions and 4 deletions

No files matched your search

+4
View File
@@ -1,3 +1,7 @@
3.0b2:
- Fixed issue where built-in permissions were not (re)loaded.
- Fixed /god not working for others.
3.0b1:
- Added parent-child relationships to regions.
- Added global build flag.
@@ -254,6 +254,7 @@ public class WorldGuardPlugin extends JavaPlugin {
public void loadConfiguration() {
Configuration config = getConfiguration();
config.load();
perms.load();
enforceOneSession = config.getBoolean("protection.enforce-single-session", true);
itemDurability = config.getBoolean("protection.item-durability", true);
@@ -483,7 +484,7 @@ public class WorldGuardPlugin extends JavaPlugin {
checkArgs(args, 0, 1);
// Allow setting other people invincible
if (args.length > 1) {
if (args.length > 0) {
if (!hasPermission(player, "/godother")) {
player.sendMessage(ChatColor.RED + "You don't have permission to make others invincible.");
return true;
@@ -572,7 +573,7 @@ public class WorldGuardPlugin extends JavaPlugin {
}
if (cmd.equalsIgnoreCase("stack")) {
checkPermission(player, "stack");
checkPermission(player, "/stack");
checkArgs(args, 0, 0);
ItemStack[] items = player.getInventory().getContents();
@@ -640,7 +641,7 @@ public class WorldGuardPlugin extends JavaPlugin {
}
if (cmd.equalsIgnoreCase("locate")) {
checkPermission(player, "locate");
checkPermission(player, "/locate");
checkArgs(args, 0, 3);
if (args.length == 1) {
@@ -688,7 +689,7 @@ public class WorldGuardPlugin extends JavaPlugin {
}
if (cmd.equalsIgnoreCase("reloadwg")) {
checkPermission(player, "reloadwg");
checkPermission(player, "/reloadwg");
checkArgs(args, 0, 0);
LoggerToChatHandler handler = new LoggerToChatHandler(player);