From a613b1933a943ef09f20b1a3a9cdc4063301918d Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Mon, 6 Jan 2014 17:21:43 +0100 Subject: [PATCH] Send messages to players when executing allow/deny riding commands. --- src/de/craftinc/gates/commands/CommandAllowRiding.java | 2 ++ src/de/craftinc/gates/commands/CommandDenyRiding.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/de/craftinc/gates/commands/CommandAllowRiding.java b/src/de/craftinc/gates/commands/CommandAllowRiding.java index a770988..5496125 100644 --- a/src/de/craftinc/gates/commands/CommandAllowRiding.java +++ b/src/de/craftinc/gates/commands/CommandAllowRiding.java @@ -18,6 +18,7 @@ package de.craftinc.gates.commands; import de.craftinc.gates.Plugin; +import org.bukkit.ChatColor; public class CommandAllowRiding extends BaseCommand { @@ -42,5 +43,6 @@ public class CommandAllowRiding extends BaseCommand protected void perform() { gate.setAllowsVehicles(true); + sendMessage(ChatColor.GREEN + "Traveling while riding is now enabled for this gate."); } } diff --git a/src/de/craftinc/gates/commands/CommandDenyRiding.java b/src/de/craftinc/gates/commands/CommandDenyRiding.java index 5802c62..0e75a33 100644 --- a/src/de/craftinc/gates/commands/CommandDenyRiding.java +++ b/src/de/craftinc/gates/commands/CommandDenyRiding.java @@ -17,6 +17,7 @@ package de.craftinc.gates.commands; import de.craftinc.gates.Plugin; +import org.bukkit.ChatColor; public class CommandDenyRiding extends BaseCommand { @@ -27,7 +28,7 @@ public class CommandDenyRiding extends BaseCommand requiredParameters.add("id"); - helpDescription = "Allow players NOT to travel while riding."; + helpDescription = "Deny players to travel while riding."; requiredPermission = Plugin.permissionManage; @@ -41,5 +42,6 @@ public class CommandDenyRiding extends BaseCommand protected void perform() { gate.setAllowsVehicles(false); + sendMessage(ChatColor.GREEN + "Traveling while riding is now disabled for this gate."); } }