Changed "Can't use command" to follow one message
This commit is contained in:
parent
6ac7106df7
commit
3426e0adb6
@ -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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ public class UndisguiseCommand implements CommandExecutor {
|
|||||||
} else
|
} else
|
||||||
sender.sendMessage(ChatColor.RED + "You are not disguised!");
|
sender.sendMessage(ChatColor.RED + "You are not disguised!");
|
||||||
} else
|
} 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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ public class UndisguisePlayerCommand implements CommandExecutor {
|
|||||||
} else
|
} else
|
||||||
sender.sendMessage(ChatColor.RED + "/undisguiseplayer <Name>");
|
sender.sendMessage(ChatColor.RED + "/undisguiseplayer <Name>");
|
||||||
} else
|
} 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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ public class UndisguiseRadiusCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
sender.sendMessage(ChatColor.RED + "Successfully undisguised " + disguisedEntitys + " entities!");
|
sender.sendMessage(ChatColor.RED + "Successfully undisguised " + disguisedEntitys + " entities!");
|
||||||
} else
|
} 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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -185,7 +185,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
|
|||||||
+ " doesn't exist!");
|
+ " doesn't exist!");
|
||||||
}
|
}
|
||||||
if (!allowedDisguises.contains(disguiseType.name().toLowerCase())) {
|
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>();
|
ArrayList<String> usedOptions = new ArrayList<String>();
|
||||||
Disguise disguise = null;
|
Disguise disguise = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user