Send messages to players when executing allow/deny riding commands.
This commit is contained in:
parent
d8fff26c9e
commit
a613b1933a
@ -18,6 +18,7 @@ package de.craftinc.gates.commands;
|
|||||||
|
|
||||||
|
|
||||||
import de.craftinc.gates.Plugin;
|
import de.craftinc.gates.Plugin;
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
|
|
||||||
public class CommandAllowRiding extends BaseCommand
|
public class CommandAllowRiding extends BaseCommand
|
||||||
{
|
{
|
||||||
@ -42,5 +43,6 @@ public class CommandAllowRiding extends BaseCommand
|
|||||||
protected void perform()
|
protected void perform()
|
||||||
{
|
{
|
||||||
gate.setAllowsVehicles(true);
|
gate.setAllowsVehicles(true);
|
||||||
|
sendMessage(ChatColor.GREEN + "Traveling while riding is now enabled for this gate.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
package de.craftinc.gates.commands;
|
package de.craftinc.gates.commands;
|
||||||
|
|
||||||
import de.craftinc.gates.Plugin;
|
import de.craftinc.gates.Plugin;
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
|
|
||||||
public class CommandDenyRiding extends BaseCommand
|
public class CommandDenyRiding extends BaseCommand
|
||||||
{
|
{
|
||||||
@ -27,7 +28,7 @@ public class CommandDenyRiding extends BaseCommand
|
|||||||
|
|
||||||
requiredParameters.add("id");
|
requiredParameters.add("id");
|
||||||
|
|
||||||
helpDescription = "Allow players NOT to travel while riding.";
|
helpDescription = "Deny players to travel while riding.";
|
||||||
|
|
||||||
requiredPermission = Plugin.permissionManage;
|
requiredPermission = Plugin.permissionManage;
|
||||||
|
|
||||||
@ -41,5 +42,6 @@ public class CommandDenyRiding extends BaseCommand
|
|||||||
protected void perform()
|
protected void perform()
|
||||||
{
|
{
|
||||||
gate.setAllowsVehicles(false);
|
gate.setAllowsVehicles(false);
|
||||||
|
sendMessage(ChatColor.GREEN + "Traveling while riding is now disabled for this gate.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user