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 {_tempban} parsed as a player

Discussion in 'Skript' started by Marsbar, Apr 2, 2019.

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

    Marsbar Active Member

    Joined:
    Mar 31, 2019
    Messages:
    131
    Likes Received:
    4
    Edit: I found a way:emoji_slight_smile:

    Hi, i am creating a custom tempban skript with timespan and then there was a kick there don't wanted to work:
    [QUOTE="
    set {_tempban} to {tempban.%{tempban.%player%.setplayer}%} parsed as a player #This line
    clear {TempBan.%player%.setreasons}
    clear {tempban.%player%.setplayer}
    clear {tempban.%player%.settimespan}
    wait 1 tick
    #if {_tempban} is online: #And this line
    kick {_tempban} due to "&cYou got banned! Reason:&4 %{tempban.%{tempban.%player%.setplayer}%.reason}%&c Time:&4 %{tempban.%{tempban.%player%.setplayer}%.timespan}%" #And this line
    [/QUOTE]
    Can someone help me pls? Btw. how to i create that cool thing to my code?
     
    #1 Marsbar, Apr 2, 2019
    Last edited: Apr 2, 2019
Thread Status:
Not open for further replies.

Share This Page

Loading...