There is no online player whose name starts with "XXX"

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

snakercz_

Member
Jun 5, 2017
13
0
1
24
Hello, i made that simple skript and when i send command /isonline (online_nick) it works, but when i send /isonline (offline_nick), it writes "There is no online player whose name starts with "xxx", no my message... how i can repair it? Thanks for reply...

code_language.skript:
command /isonline <player>:
        permission: bcm.isonline
        trigger:
                set {isonlinepl} to player
                if {isonlinepl} is online:
                        message "Player %{isonlinepl}% is &aonline&f!" to player
                else:
                        message "Player %{isonlinepl}% is &coffline&f!" to player
 
Line 1 needs to be "command /isonline <offline player>:"

Also if you want "{isonlinepl}" to be the player that is typed in the command then line 4 needs to be "set {isonlinepl} to arg-1"
 
Status
Not open for further replies.