/Command {player}

Discussion in 'Spigot Plugin Development' started by The_AxeMaster, Feb 8, 2017.

  1. JanTuck

    Supporter

    I assume you are a noob at java please post whole class.

    Set the player outside the loop, check for args before using them. Getters should be gotton outside loop so no unnecesary calls are made... etc...

    Sendt fra min ALE-L21 med Tapatalk
     
  2. JanTuck

    Supporter

    Why are you checking if the players name is equal to the commad.label?

    Sendt fra min ALE-L21 med Tapatalk
     
  3. Can you correct the code?
     
  4. JanTuck

    Supporter

    Yes, but will i? No im sry. Im here to help you but not spoonfeed you.
     
    • Like Like x 1
    • Funny Funny x 1
  5. Then tell me what to fix...
     
  6. JanTuck

    Supporter

    Im currently on my way to bed but ill help you tomorrow if you havent gotten any help by then.

    Wanna answer my question? Why do you try to see if the players name is the same as the command?
     
  7. Not sure lol. I was trying everything i could think of trying.