info command now prints about open and hidden status of gates
This commit is contained in:
parent
448763171d
commit
4b5e4a5e13
@ -20,6 +20,20 @@ public class CommandInfo extends BaseCommand
|
||||
{
|
||||
sendMessage(ChatColor.LIGHT_PURPLE + "Information about " + ChatColor.WHITE + gate.getId() + ChatColor.LIGHT_PURPLE + ":");
|
||||
|
||||
String openHiddenMessage = "This gate is";
|
||||
|
||||
if (gate.isOpen())
|
||||
openHiddenMessage += " open";
|
||||
else
|
||||
openHiddenMessage += " closed";
|
||||
|
||||
if (gate.isHidden())
|
||||
openHiddenMessage += " and hidden";
|
||||
|
||||
openHiddenMessage += ".";
|
||||
|
||||
sendMessage(openHiddenMessage);
|
||||
|
||||
if (gate.getFrom() != null)
|
||||
sendMessage(ChatColor.GREEN + "'from' location: " + ChatColor.YELLOW + "( " + gate.getFrom().getBlockX() + " | " + gate.getFrom().getBlockY() + " | " + gate.getFrom().getBlockZ() + " ) in " + gate.getFrom().getWorld().getName());
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user