mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-08 20:00:01 +01:00
Spruce up command help menus
This commit is contained in:
parent
afce66525a
commit
fde78414b1
@ -424,8 +424,8 @@ public class CmdExecutor implements CommandExecutor {
|
|||||||
private boolean questsInfo(final CommandSender cs) {
|
private boolean questsInfo(final CommandSender cs) {
|
||||||
if (cs.hasPermission("quests.info")) {
|
if (cs.hasPermission("quests.info")) {
|
||||||
cs.sendMessage(ChatColor.YELLOW + Lang.get("quests") + " " + ChatColor.GOLD + plugin.getDescription().getVersion());
|
cs.sendMessage(ChatColor.YELLOW + Lang.get("quests") + " " + ChatColor.GOLD + plugin.getDescription().getVersion());
|
||||||
cs.sendMessage(ChatColor.GOLD + Lang.get("createdBy") + " " + ChatColor.DARK_RED + "Blackvein"
|
cs.sendMessage(ChatColor.GOLD + Lang.get("createdBy") + " " + ChatColor.RED + "Blackvein"
|
||||||
+ ChatColor.GOLD + " " + Lang.get("continuedBy") + " " + ChatColor.DARK_RED + "PikaMug");
|
+ ChatColor.GOLD + " " + Lang.get("continuedBy") + " " + ChatColor.RED + "PikaMug");
|
||||||
cs.sendMessage(ChatColor.DARK_AQUA + "" + ChatColor.UNDERLINE + "https://www.spigotmc.org/resources/quests.3711/");
|
cs.sendMessage(ChatColor.DARK_AQUA + "" + ChatColor.UNDERLINE + "https://www.spigotmc.org/resources/quests.3711/");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -838,13 +838,12 @@ public class CmdExecutor implements CommandExecutor {
|
|||||||
player.sendMessage(ChatColor.YELLOW + "/quests " + Lang.get(player, "COMMAND_INFO_HELP")
|
player.sendMessage(ChatColor.YELLOW + "/quests " + Lang.get(player, "COMMAND_INFO_HELP")
|
||||||
.replace("<command>", ChatColor.GOLD + (translateSubCommands ? Lang.get(player, "COMMAND_INFO") : "info") + ChatColor.YELLOW));
|
.replace("<command>", ChatColor.GOLD + (translateSubCommands ? Lang.get(player, "COMMAND_INFO") : "info") + ChatColor.YELLOW));
|
||||||
}
|
}
|
||||||
player.sendMessage(" ");
|
player.sendMessage(ChatColor.DARK_AQUA + "/quest " + ChatColor.YELLOW + Lang.get(player, "COMMAND_QUEST_HELP"));
|
||||||
player.sendMessage(ChatColor.YELLOW + "/quest " + Lang.get(player, "COMMAND_QUEST_HELP"));
|
|
||||||
if (player.hasPermission("quests.questinfo")) {
|
if (player.hasPermission("quests.questinfo")) {
|
||||||
player.sendMessage(ChatColor.YELLOW + "/quest " + Lang.get(player, "COMMAND_QUESTINFO_HELP"));
|
player.sendMessage(ChatColor.DARK_AQUA + "/quest " + ChatColor.YELLOW + Lang.get(player, "COMMAND_QUESTINFO_HELP"));
|
||||||
}
|
}
|
||||||
if (player.hasPermission("quests.admin.*") || player.hasPermission("quests.admin")) {
|
if (player.hasPermission("quests.admin.*") || player.hasPermission("quests.admin")) {
|
||||||
player.sendMessage(ChatColor.DARK_RED + "/questadmin " + ChatColor.RED + Lang.get(player, "COMMAND_QUESTADMIN_HELP"));
|
player.sendMessage(ChatColor.YELLOW + "/questadmin " + ChatColor.RED + Lang.get(player, "COMMAND_QUESTADMIN_HELP"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user