Solved Notify players on a list in the config

Discussion in 'Plugin Development' started by dvargas135, Nov 2, 2015.

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

    dvargas135

    So I tried everything to notify specific players on a list stated in the config.

    My config is like this:
    Code:
    bypassed-players:
    - Notch
    My mind got blocked when trying to figure out how to notify them, could someone help me out with this?
     
  2. Offline

    I Al Istannen

    Zombie_Striker likes this.
  3. Offline

    Zombie_Striker

  4. Offline

    dvargas135

    Okay thanks, I'll try

    @I Al Istannen It works, thanks!
    However, I get an error on console:
    http://pastebin.com/42BxwwW2

    It's because the player in the list isn't online...

    Anyone knows how to fix it?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 2, 2015
  5. Offline

    teej107

    Null check
     
    Zombie_Striker likes this.
  6. Offline

    dvargas135

    How though? I tried if (string != null) but didn't work
     
  7. Offline

    teej107

    Let me rephrase. Null check against the Object that might be null.
     
  8. Offline

    dvargas135

    the string is the one that can be null
     
  9. Offline

    teej107

    You sure about that? Read your stacktrace and get the line the error is happening on.
     
  10. Offline

    dvargas135

    I wasn't doing the correct null check, I did it for the player and worked. Thanks!
     
  11. Offline

    teej107

    Glad I could help. Please mark this thread as solved.
     
  12. Offline

    87pen

Thread Status:
Not open for further replies.

Share This Page