From 5be31ebb5c692d9d50bf9b2bb5f11c1ae123793c Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 21 Jan 2011 19:49:22 -0800 Subject: [PATCH] Fixed /god not working for others. --- CHANGELOG.txt | 1 + src/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8ed59af7..5bb4bab7 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,6 @@ 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. diff --git a/src/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java b/src/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java index 5b303c4f..1b728b52 100644 --- a/src/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java +++ b/src/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java @@ -484,7 +484,7 @@ private boolean handleCommand(Player player, String cmd, String[] args) 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;