Checking if player is online

Discussion in 'Plugin Development' started by HamOmlet, Jun 21, 2012.

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

    HamOmlet

    Hello,

    I'm trying to check whether or not a player is online. At first, I figured it would be easy enough to cycle through the online players, but I was wondering if using getPlayer would return the same result.

    By using getPlayer, would I be able to check if a player is online? I would think that the result would be null, and I could just go from there.
     
  2. Offline

    tabr

    ...getPlayer().isOnline();
    if use an eclipse, just type "getPlayer()." and wait - will appear list with methods!
     
  3. Offline

    HamOmlet

    And with that, I confirm my idiocy. :'(

    Thanks!
     
Thread Status:
Not open for further replies.

Share This Page