[SKRIPT] How to check the amount of online players

Discussion in 'Skript' started by DropTheHood, Apr 13, 2017.

  1. So, right now, my code is this: 'on join: add 1 to {players.online}' Alright. So, I have realized that this way is VERY VERY inefficient because some people log off incorrectly, and it subtracts 2, but only 1 person overall left the server. So, I need skript to check the amount of players there are that are online because this method is clearly not working out for me! xD Thanks so much guys! You guys are amazing! :)
    • Like Like x 1
  2. Code (Text):
    on join:
        set {players.online} to number of all players
    • Like Like x 2
  3. Thanks man! I didn't know it was so easy! :) Your amazing!