mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 19:15:44 +00:00
Update bukkit.jar to #1593 in lib so we can reference the new
interfaces.
This commit is contained in:
parent
a7aa8be37a
commit
269cf85457
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
BIN
lib/bukkit.jar
BIN
lib/bukkit.jar
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue