Jump to content

Trouble making a temp ban with skript


awesomeme337666

Recommended Posts

Every time I reload the skript it says "Can't understand this condition: '{_waitedcommandkick} is less than {waittempbanned.%player%} seconds' Line: if {_waitedcommandkick} is less than {waittempbanned.%player%} seconds:".

 

can anyone tell me how to fix it please

command /tempban [<player>] [<timespan>] [<string>]:
2
    trigger:
3
        set {tempbanned.when.%arg-1%} to now
4
        set {tempbanned.%arg-1%} to true
5
        set {waittempbanned.%arg-1%} to 10
6
        set {tempbanned.reason.%arg-1%} to arg-3
7
        kick player due to "reason: %{tempbanned.reason.%arg-1%}%"
8
 
9
command /untempban [<offlineplayer>]:
10
    trigger:
11
        set {tempbanned.%arg-1%} to false
12
on join:
13
    set {_waitedcommandkick} to difference between {waittempbanned.%player%} and now
14
    if {_waitedcommandkick} is less than {waittempbanned.%player%} seconds:
15
        set {tempbanned.%player%} to false
16
    if {tempbanned.%player%} is true:
17
        kick player due to "reason: %{tempbanned.reason.%player%}%"
18
 
 
 
Exit
 
Save
 

 

Edited by awesomeme337666
gave up
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...