I have an issue with a TuSKe GUI. When inside the GUI it will ALWAYS say the player is offline, but if i do the same outside the GUI, it will say the player is online.
Code:
#This one says the player is offline while they are online
command /test1 [<OfflinePlayer>]:
trigger:
if offlineplayer-arg-1 is not set:
message "NO PLAYER"
if offlineplayer-arg-1 is set:
create a gui with virtual chest with 2 rows named "TEST":
make gui 0 with glowstone named "TEST":
if offlineplayer-arg-1 is online:
close player's inventory
message "PLAYER IS ONLINE"
stop
if offlineplayer-arg-1 is offline:
close player's inventory
message "PLAYER IS OFFLINE"
stop
open last gui to player
#This one says the player is online while they are online
command /test2 [<OfflinePlayer>]:
trigger:
if offlineplayer-arg-1 is not set:
message "NO PLAYER"
if offlineplayer-arg-1 is set:
if offlineplayer-arg-1 is online:
close player's inventory
message "PLAYER IS ONLINE"
stop
if offlineplayer-arg-1 is offline:
close player's inventory
message "PLAYER IS OFFLINE"
stop