help me please

Discussion in 'Plugin Development' started by TheQurekPL, Mar 29, 2019.

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

    TheQurekPL

    Hi i have a problem in
    Can help me ?
    upload_2019-3-29_14-28-25.png
     
  2. Offline

    KarimAKL

    @TheQurekPL Hold the mouse over the error and you can read what's wrong.
     
  3. Offline

    timtower Administrator Administrator Moderator

  4. Offline

    TheQurekPL

    I removed this.plugin. ...
    and i have problem
     
  5. Offline

    timtower Administrator Administrator Moderator

  6. Offline

    TheQurekPL

    this.plugin.getServer().getOnlinePlayer();
    @timtower help please
     
    Last edited: Mar 29, 2019
  7. Offline

    KarimAKL

    @TheQurekPL Try typing 'plugin.getServer().getOnlinePlayers()' instead of 'this.plugin.getServer().getOnlinePlayers()'
     
  8. Offline

    TheQurekPL

    not working
     
  9. Offline

    KarimAKL

  10. Offline

    timtower Administrator Administrator Moderator

  11. Offline

    TheQurekPL

  12. Offline

    KarimAKL

    @TheQurekPL You have no variable named 'plugin' in that class.
     
  13. Offline

    TheQurekPL

  14. Offline

    KarimAKL

    @TheQurekPL Try making a variable named 'plugin' outside of the run() method, that should work for you.
     
  15. Offline

    Dai_Kunai

    There is also no = sign...
    on line 19
     
  16. Offline

    Shqep

    Try using
    Code:Java
    1. Bukkit.getServer().getOnlinePlayers();

    or use an instance of your main class
     
  17. Offline

    KarimAKL

    Wow, i didn't even notice. :p

    @TheQurekPL Try adding '=' at line 19 and a variable with the name 'plugin' in your class. (pass it an instance of your main class)
     
Thread Status:
Not open for further replies.

Share This Page