Getting a placeholder from an offline player

Discussion in 'Skript' started by Stefan347401, Sep 2, 2018.

  1. Hi, I am trying to get a placeholder from an offline player with the skript addon Ersatz
    Code (Text):
    set {_time} to placeholder "%%ontime_time_played_total%%" from arg 1
    But if arg 1 is offline, {_time} is always going to be <none>. Are there any ways to fix this?
     
  2. Maybe set it to a var if they quit and if they aren't online use the var and if they are use the placeholder
     
    • Winner Winner x 1
  3. like,
    Code (Text):
    On disconnect:
        set {offlinetime.%player%} to placeholder "%%ontime_time_player_total%%" from player
    ?
     
  4. Thanks, it worked!
     
    • Like Like x 1