How change /help command

Discussion in 'Spigot Plugin Development' started by xTheMAG, May 24, 2016.

  1. WAtch youtube tutorials on how to make a bukkit / spigot plugin. learn java. learn spigot / bukkit.
    • Optimistic Optimistic x 2
  2. Man i know to make bukkit plugins.. :O i don't know separarate list on page. :( and i don't find
  3. How about the Java part? If you knew that, you would be able to create those pages
    • Agree Agree x 1
  4. some of the people on this forum give me cancer...
    • Like Like x 3
    • Agree Agree x 2
    • Funny Funny x 2
    • Friendly Friendly x 1
  5. you use arguments, args.length and args[int]
  6. There are plenty of custom help command plugins out there. If you're using Essentials, you can edit the message via the locale files. If you're developing, your command will override the default /help command.
  7. you can make it by arguments, args.length and args[int] for example you do
    Code (Text):
            if (cmd.getName().equalsIgnoreCase("help"))
                if (args.length == 0)
                           continue the first help command.....
    then for the next command like /help 1 you do an else if statement with the args you made. like this;
    Code (Text):
    else if (args[0].equalsIgnoreCase("1"))
        continue the code...
    #8 Nosmakos, May 25, 2016
    Last edited: May 26, 2016
  8. In that exact picture, they are using Essentials Locale message files.
  9. #10 NickMD, May 26, 2016
    Last edited: May 26, 2016
  10. :D Addition

    Code (Java):
    public static boolean isInt(String s) {
            try {
            } catch (NumberFormatException nfe) {
                return false;
            return true;