mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-09 20:41:23 +01:00
change commandblock message
This commit is contained in:
parent
48db088fb4
commit
308f05b8bf
@ -393,7 +393,8 @@ public class GroupManager extends JavaPlugin {
|
|||||||
// PREVENT GM COMMANDS BEING USED ON COMMANDBLOCKS
|
// PREVENT GM COMMANDS BEING USED ON COMMANDBLOCKS
|
||||||
if (sender instanceof BlockCommandSender && !isAllowCommandBlocks) {
|
if (sender instanceof BlockCommandSender && !isAllowCommandBlocks) {
|
||||||
Block block = ((BlockCommandSender)sender).getBlock();
|
Block block = ((BlockCommandSender)sender).getBlock();
|
||||||
GroupManager.logger.warning(ChatColor.RED + "GM Commands can not be called from the CommandBlock at location: " + ChatColor.GREEN + block.getWorld().getName() + " - " + block.getX() + ", " + block.getY() + ", " + block.getZ());
|
GroupManager.logger.warning(ChatColor.RED + "GM Commands can not be called from CommandBlocks");
|
||||||
|
GroupManager.logger.warning(ChatColor.RED + "Location: " + ChatColor.GREEN + block.getWorld().getName() + ", " + block.getX() + ", " + block.getY() + ", " + block.getZ());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user