Hey guys, was just making my first plugin and when I came to testing it, I kept getting an internal error occured. It uses permission nodes, etc etc. It may also be a mistake from the YML file I made. EDIT: Solved
This is wrong: Code: if (args[0].equalsIgnoreCase("/armor") The command comes from the "Command command" so: Code: if (command.equals("armor")) { if (args[0].equalsIgnoreCase("leather")){ //your code } } Everything that comes after the armor is on args[x]
Thank you so much, since I am new to the API and due to the tutorials being outdated, I did not know about this =/.