Solved Apply this Condition for player only?

  • 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.

niznet

Member
Jan 28, 2017
41
2
0
Indonesia
well i trying make auth system for my server, but i got problem in " on command: " event :/
how this only for player not console too? i cant send any command in console.

code_language.skript:
on command:
    if "%command%" is not "login", "lg", "l", "logout", "reg", "register" or "fauth":
        if {logged::%UUID of player%} is false:
            send "{@erlog}" to player
            cancel event
        if {register::%UUID of player%} is not set:
            send "{@erlog}" to player
            cancel event
 
Never used it, maybe this?

on player command:

Try it.

or maybe

on command:
if console command:
stop # stop instead of cancel event
 
Why don't you go on the resource page and check how the auth system for the other skripts works? This is not copying, this is learning.
 
Tell us how it's done. This may help someone else.
Changed "is not" to "contains"
code_language.skript:
if "%command%" is not "login", "lg", "l", "logout", "reg", "register" or "fauth":
after:
code_language.skript:
    if "%command%" contains "login", "lg", "l", "logout", "reg", "register" or "fauth":
 
Status
Not open for further replies.