Changed "Can't use command" to follow one message
This commit is contained in:
		| @@ -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; | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -29,7 +29,7 @@ public class UndisguisePlayerCommand implements CommandExecutor { | ||||
|             } else | ||||
|                 sender.sendMessage(ChatColor.RED + "/undisguiseplayer <Name>"); | ||||
|         } 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; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -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; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -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<String> usedOptions = new ArrayList<String>(); | ||||
|         Disguise disguise = null; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user