Add Help Messages

This commit is contained in:
Max Qian 2016-08-02 20:31:16 -07:00
parent 62037634bc
commit 109cd04034
3 changed files with 18 additions and 7 deletions

View File

@ -359,12 +359,15 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
}
break;
case "help":
case "helppage":
sender.sendMessage(PluginMessages.customPrefix + " Still designing in game help page :(");
sender.sendMessage(PluginMessages.customPrefix + " For now please use the wiki http://bit.ly/portals-help");
break;
case "bukkitpage":
sender.sendMessage(PluginMessages.customPrefix + " Bukkit page: http://bit.ly/adv-portals!");
sender.sendMessage(PluginMessages.customPrefix + " Help Menu");
sender.sendMessage("\u00A7e\u00A7m-----------------------------------");
sender.sendMessage("\u00A76/" + command + " selector \u00A7a- gives you a region selector");
sender.sendMessage("\u00A76/" + command + " create \u00A7c[tags] \u00A7a- creates a portal with a selection ");
sender.sendMessage("\u00A76/" + command + " portal \u00A7a- gives you a portal block");
sender.sendMessage("\u00A76/" + command + " select \u00A7a- selects an existing portal");
sender.sendMessage("\u00A76/" + command + " remove \u00A7a- removes a portal");
sender.sendMessage("\u00A76/" + command + " variables \u00A7a- lists all available tags");
sender.sendMessage("\u00A7e\u00A7m-----------------------------------");
break;
case "show":
if (args.length > 1) {

View File

@ -29,5 +29,4 @@ public class PluginMessages {
public static void NoPermission(CommandSender sender, String command) {
sender.sendMessage(customPrefixFail + " You do not have permission to perform that command!");
}
}

View File

@ -70,6 +70,15 @@ public class DestinationCommand implements CommandExecutor, TabCompleter {
for (String desti : config.getConfig().getKeys(false)) message = message + " " + desti;
sender.sendMessage(message);
break;
case "help":
sender.sendMessage(PluginMessages.customPrefix + " Destination Help Menu");
sender.sendMessage("\u00A7e\u00A7m----------------------------");
sender.sendMessage("\u00A76/" + command + " \u00A7c[name] \u00A7a- teleport to destination");
sender.sendMessage("\u00A76/" + command + " create \u00A7c[name] \u00A7a- create destination at your location");
sender.sendMessage("\u00A76/" + command + " remove \u00A7c[name] \u00A7a- remove destination");
sender.sendMessage("\u00A76/" + command + " list \u00A7a- list all destinations");
sender.sendMessage("\u00A7e\u00A7m----------------------------");
break;
default:
Destination.warp((Player) sender, args[0]);
break;