Discussion in 'Plugin Development' started by kingsofbart, Sep 16, 2015.
This is solved.
Put your code in [ code=Java ] //code [ /code ] brackets, it makes it so much easier to read.
I will take a look at this once I get home.
check if PL is null,
Don't just assume just because they have one arg, they have 4. What if they have 3? 3 is greater than one, but there won't be a forth arg.
For strings, it better to use equalsignorecase (just in case someone forgot to use caps)
But /getpowerups doesnt work (updating script right now, it doesnt give an error)
EDIT by Moderator: merged posts, please use the edit button instead of double posting.
A) Are you sure your brackets are correct?
B) Did you even try to debug the onCommand method?
C) Configs require periods ('.') for each secion. I see you're trying to get a path in the config, but you're using "UUIDlayer'sUUID" instead of "UUID.PlayersUUID". Are you sure the configs are correct?
D) Did you even try to debug any of those getpowerup methods?
Separate names with a comma.