Update bukkit.jar to #1593 in lib so we can reference the new

interfaces.
This commit is contained in:
ElgarL 2012-11-13 10:17:15 +00:00
parent a7aa8be37a
commit 269cf85457
2 changed files with 2 additions and 1 deletions

View file

@ -34,6 +34,7 @@ import org.anjocaido.groupmanager.utils.Tasks;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.BlockCommandSender;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
@ -383,7 +384,7 @@ public class GroupManager extends JavaPlugin {
boolean isOpOverride = config.isOpOverride();
// PREVENT GM COMMANDS BEING USED ON COMMANDBLOCKS
if (sender.getClass().getName().equals("org.bukkit.command.BlockCommandSender")) {
if (sender instanceof BlockCommandSender) {
sender.sendMessage(ChatColor.RED + "GM Commands can not be called from CommandBlocks");
return true;
}

Binary file not shown.