You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make the command run to detect if the player is online, but it doesn't matter if the detection is online or not
Will not work
Expected Behavior
Should stop when the player is not online
Steps to Reproduce
here is my code
set {_p} to arg-2 parsed as offline players
if {_p} is online:
send "1" to player
if {_p} is offline:
send "2" to player
if {_p} isn't set:
send "3" to player
send "%type of {_p}%" to player
if {_p} is online:
if {guild.%{_p}%} isn't set:
if {guildInvite.%player%::%{_p}%} isn't set:
set {guildInvite.%player%::%{_p}%} to true
send "{@sysprefix} &a成功發送邀請給 &e%{_p}%." to player
send "{@sysprefix} &e%{_p}% &7有 &e{@invitetime} &7秒&e接受&7/&e拒絕" to player
send "&6[+]--------------------------[+]" to {_p}
send "" to {_p}
send " &e%player% &7邀請你加入公會." to {_p}
send "" to {_p}
send formatted " tooltip:&a點擊接受<run command:/g accept %player%>&2[&a接受&2] tooltip:&c點擊拒絕<run command:/g deny %player%>&4[&c拒絕&4]" to {_p}
send "" to {_p}
send "&6[+]--------------------------[+]" to {_p}
wait {@invitetime} seconds
if {guildInvite.%player%::%{_p}%} is set:
delete {guildInvite.%player%::%{_p}%}
send "{@sysprefix} &c你發送給 &e%{_p}% 的公會邀請已過期!"
stop
else:
send "{@sysprefix} &c你已邀請過該玩家! 若該玩家未收到邀請, 請等待邀請過期後再重新邀請"
stop
else:
send "{@sysprefix} &c該玩家當前已經擁有公會!"
stop
else:
send "{@sysprefix} &c該玩家不在線上或不存在"
stop
Errors or Screenshots
There are no error messages in the console
Other
No response
Agreement
I have read the guidelines above and affirm I am following them with this report.
The text was updated successfully, but these errors were encountered:
Skript/Server Version
Bug Description
I'm trying to make the command run to detect if the player is online, but it doesn't matter if the detection is online or not
Will not work
Expected Behavior
Should stop when the player is not online
Steps to Reproduce
here is my code
set {_p} to arg-2 parsed as offline players
if {_p} is online:
send "1" to player
if {_p} is offline:
send "2" to player
if {_p} isn't set:
send "3" to player
send "%type of {_p}%" to player
if {_p} is online:
if {guild.%{_p}%} isn't set:
if {guildInvite.%player%::%{_p}%} isn't set:
set {guildInvite.%player%::%{_p}%} to true
send "{@sysprefix} &a成功發送邀請給 &e%{_p}%." to player
send "{@sysprefix} &e%{_p}% &7有 &e{@invitetime} &7秒&e接受&7/&e拒絕" to player
send "&6[+]--------------------------[+]" to {_p}
send "" to {_p}
send " &e%player% &7邀請你加入公會." to {_p}
send "" to {_p}
send formatted " tooltip:&a點擊接受<run command:/g accept %player%>&2[&a接受&2] tooltip:&c點擊拒絕<run command:/g deny %player%>&4[&c拒絕&4]" to {_p}
send "" to {_p}
send "&6[+]--------------------------[+]" to {_p}
wait {@invitetime} seconds
if {guildInvite.%player%::%{_p}%} is set:
delete {guildInvite.%player%::%{_p}%}
send "{@sysprefix} &c你發送給 &e%{_p}% 的公會邀請已過期!"
stop
else:
send "{@sysprefix} &c你已邀請過該玩家! 若該玩家未收到邀請, 請等待邀請過期後再重新邀請"
stop
else:
send "{@sysprefix} &c該玩家當前已經擁有公會!"
stop
else:
send "{@sysprefix} &c該玩家不在線上或不存在"
stop
Errors or Screenshots
There are no error messages in the console
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: