From 3426e0adb6f3ccd020ca2e8daddd8038a36bb76c Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 2 Jun 2014 03:52:54 +1200 Subject: [PATCH] Changed "Can't use command" to follow one message --- src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java | 2 +- src/me/libraryaddict/disguise/commands/UndisguiseCommand.java | 2 +- .../disguise/commands/UndisguisePlayerCommand.java | 2 +- .../disguise/commands/UndisguiseRadiusCommand.java | 2 +- .../libraryaddict/disguise/utilities/BaseDisguiseCommand.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java b/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java index 95b0ff79..c48efb11 100644 --- a/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java +++ b/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java @@ -195,7 +195,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand { } } } - sender.sendMessage(ChatColor.RED + "You are forbidden from using this command!"); + sender.sendMessage(ChatColor.RED + "You are forbidden to use this command."); return true; } diff --git a/src/me/libraryaddict/disguise/commands/UndisguiseCommand.java b/src/me/libraryaddict/disguise/commands/UndisguiseCommand.java index 22acffc9..89ee84d8 100644 --- a/src/me/libraryaddict/disguise/commands/UndisguiseCommand.java +++ b/src/me/libraryaddict/disguise/commands/UndisguiseCommand.java @@ -26,7 +26,7 @@ public class UndisguiseCommand implements CommandExecutor { } else sender.sendMessage(ChatColor.RED + "You are not disguised!"); } else - sender.sendMessage(ChatColor.RED + "You are forbidden to use this command!"); + sender.sendMessage(ChatColor.RED + "You are forbidden to use this command."); return true; } } diff --git a/src/me/libraryaddict/disguise/commands/UndisguisePlayerCommand.java b/src/me/libraryaddict/disguise/commands/UndisguisePlayerCommand.java index 9cb714e8..a41062f4 100644 --- a/src/me/libraryaddict/disguise/commands/UndisguisePlayerCommand.java +++ b/src/me/libraryaddict/disguise/commands/UndisguisePlayerCommand.java @@ -29,7 +29,7 @@ public class UndisguisePlayerCommand implements CommandExecutor { } else sender.sendMessage(ChatColor.RED + "/undisguiseplayer "); } else - sender.sendMessage(ChatColor.RED + "You are forbidden to use this command!"); + sender.sendMessage(ChatColor.RED + "You are forbidden to use this command."); return true; } } diff --git a/src/me/libraryaddict/disguise/commands/UndisguiseRadiusCommand.java b/src/me/libraryaddict/disguise/commands/UndisguiseRadiusCommand.java index de60a770..3bf552e2 100644 --- a/src/me/libraryaddict/disguise/commands/UndisguiseRadiusCommand.java +++ b/src/me/libraryaddict/disguise/commands/UndisguiseRadiusCommand.java @@ -59,7 +59,7 @@ public class UndisguiseRadiusCommand implements CommandExecutor { } sender.sendMessage(ChatColor.RED + "Successfully undisguised " + disguisedEntitys + " entities!"); } else - sender.sendMessage(ChatColor.RED + "You are forbidden to use this command!"); + sender.sendMessage(ChatColor.RED + "You are forbidden to use this command."); return true; } } diff --git a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java index cfa196b7..170a024d 100644 --- a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java +++ b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java @@ -185,7 +185,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor { + " doesn't exist!"); } if (!allowedDisguises.contains(disguiseType.name().toLowerCase())) { - throw new Exception(ChatColor.RED + "You are forbidden to use this disguise!"); + throw new Exception(ChatColor.RED + "You are forbidden to use this disguise."); } ArrayList usedOptions = new ArrayList(); Disguise disguise = null;