Config problem?

Discussion in 'Plugin Development' started by kingsofbart, Sep 16, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    kingsofbart

    Hi all,

    This is solved.

    bye,
    bart
     
    Last edited: Sep 23, 2015
  2. Offline

    RoboticPlayer

    Put your code in [ code=Java ] //code [ /code ] brackets, it makes it so much easier to read.
     
  3. Offline

    kingsofbart

    done
     
  4. Offline

    RoboticPlayer

    I will take a look at this once I get home.
     
  5. Offline

    Zombie_Striker

    @kingsofbart
    1. check if PL is null,
    2. 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.
    3. For strings, it better to use equalsignorecase (just in case someone forgot to use caps)
     
  6. Offline

    kingsofbart

    Thank you!

    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.
     
    Last edited by a moderator: Jun 11, 2016
  7. Offline

    Zombie_Striker

    @kingsofbart
    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 "UUID:player'sUUID" instead of "UUID.PlayersUUID". Are you sure the configs are correct?
    D) Did you even try to debug any of those getpowerup methods?
     
Thread Status:
Not open for further replies.

Share This Page