1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved help

Discussion in 'Skript' started by EricDasBrot, Jul 21, 2017.

Thread Status:
Not open for further replies.
  1. EricDasBrot

    EricDasBrot Member

    Joined:
    Jun 1, 2017
    Messages:
    26
    Likes Received:
    0
    what is wrong here?
    the errror is, that when i type in the chat "test", that nothing happens.
    i hope you can help me.

    Pastebin: https://pastebin.com/zJ3Q4kKE
    ---------------------------------------------------------------------------------------------------------------------------------------

    command /register:
    trigger:
    message "&6Please type in your password!"
    if {chat.owner} is not set:
    set {chat.owner} to true
    stop

    on chat:
    if {chat.owner} is true:
    if chat message is "test":
    cancel event
    set {chat.owner} to false
    message "&aDu bist nun als Owner registriert!"
    execute console command "pex user %player% add *"
    else:
    cancel event
    message "&cDies ist leider das falsche Passwort!"
    set {chat.owner} to false
     
  2. Best Answer:
    Post #2 by ShaneBee, Jul 21, 2017
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Code (Skript):
    1.  
    2. command register:
    3.     trigger:
    4.         message "&6Bitte gib dein Passwort ein."
    5.         set {pass_check::%player%} to true
    6.      
    7. on chat:
    8.     {pass_check::%player%} is true:
    9.         cancel the event
    10.         message is "$Password":
    11.             delete {pass_check::%player%}
    12.             execute console command "/pex user %player% add *"
    13.             message "&aDu bist nun als Owner registriert."
    14.         else:
    15.             delete {pass_check::%player%}
    16.             message "&cDas Passwort war falsch. fgt."
    17.  
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    1. Please.... Next time don't put in theard "HELP!!!!", just explain us which problem example "On Chat doesn't work right?" or somethings.

    1. Bitte... Nächste mal schreibt nicht in Thema: "HILFEE!!!", Beschreib es einfach was für probleme sie haben, beispielweise "On chat, Funkoniert nicht richtig?" oder so.

    2.Use Code Tags... This is very ulgy to read.

    2. Benutzt Code tags.... Das ist schrecklich zum lesen

    3. Maybe

    3. Vielleicht
    Code (Skript):
    1. if message is "test":
    2.  
    4. But reamain, you set the variables to EVERYONE! Use this way:

    4. Aber merke, Du hast die variables zu JEDER gesetzt. Benutzte so:

    Code (Skript):
    1. command /register:
    2.     trigger:
    3.         if {Chat.Owner::%player%} is not set:
    4.              set {Chat.Owner::%player%} to true
    5.              send "&6Please type in your password!"
    6.  
    7. on chat:
    8.     if {Chat.Owner::%player%} is set:
    9.         cancel event
    10.         delete {chat.Owner::%player%}
    11.         if message is "test":
    12.             send "Du bist nun Owner!"
    13.             make console execute command "/pex user "%player%" add *"
    14.         else:
    15.             send "Dies is falsch passwort"
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
Thread Status:
Not open for further replies.

Share This Page

Loading...