Send messages to players when executing allow/deny riding commands.

This commit is contained in:
Tobias Ottenweller 2014-01-06 17:21:43 +01:00
parent d8fff26c9e
commit a613b1933a
2 changed files with 5 additions and 1 deletions

View File

@ -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.");
}
}

View File

@ -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.");
}
}