From c7a423ff20afb2f7f929b5e2896254166d494ee6 Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Wed, 5 Feb 2014 20:36:23 +0100 Subject: [PATCH] Display information about allowed vehicles when executing the info command. --- src/de/craftinc/gates/commands/CommandInfo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/de/craftinc/gates/commands/CommandInfo.java b/src/de/craftinc/gates/commands/CommandInfo.java index d276e5e..bb2bff7 100644 --- a/src/de/craftinc/gates/commands/CommandInfo.java +++ b/src/de/craftinc/gates/commands/CommandInfo.java @@ -106,6 +106,10 @@ public class CommandInfo extends BaseCommand sendMessage(ChatColor.DARK_AQUA + "NOTE: this gate has no exit"); + if (gate.getAllowsVehicles()) + sendMessage(ChatColor.DARK_AQUA + "You can ride through this gate."); + + if (this.sender instanceof Player) { GateBlockChangeSender.temporaryHighlightGateFrame((Player)this.sender, this.gate); }