need help

  • 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.
Hm.. im not sure that if you can add to normal variable.. try change it to list variable ({toxic.messages::%player%})...
+I would changed your variable from "{%player%.toxicity}" to "{toxic.messages::%player%}"
Try:
code_language.skript:
on join:
    if {toxicity::%player%} is not set:
       set {toxicity::%player%} to false

on chat:
    if message contains "cunt", "fuck", "nigga", "nigger", "bitch", "dick" or "shithead":
        if {toxicity::%player%} is true:
            cancel event
            message "&6-----------------------------------------"
            message "&c&lSwearing and attempting to circumvent the filter"
            message "&c&lare against the rules."
            message "&6-----------------------------------------"
        else: 
            set {toxicity::%player%} to true
            cancel event
            message "&6-----------------------------------------"
            message "&c&lSwearing and attempting to circumvent the filter"
            message "&c&lare against the rules."
            message "&6-----------------------------------------"         
            wait 24 hours
            set {toxicity::%player%} to false
code_language.skript:
on chat:
    if {toxicity::%player%} is true:
        add message to {toxic.messages::%player%}
  
command /cw [<offline-player>]:
    permission: "Community.Watch"
    trigger:
        send "Wait"
 
Hm.. im not sure that if you can add to normal variable.. try change it to list variable ({toxic.messages::%player%})...
+I would changed your variable from "{%player%.toxicity}" to "{toxic.messages::%player%}"
Try:
code_language.skript:
on join:
    if {toxicity::%player%} is not set:
       set {toxicity::%player%} to false

on chat:
    if message contains "cunt", "fuck", "nigga", "nigger", "bitch", "dick" or "shithead":
        if {toxicity::%player%} is true:
            cancel event
            message "&6-----------------------------------------"
            message "&c&lSwearing and attempting to circumvent the filter"
            message "&c&lare against the rules."
            message "&6-----------------------------------------"
        else:
            set {toxicity::%player%} to true
            cancel event
            message "&6-----------------------------------------"
            message "&c&lSwearing and attempting to circumvent the filter"
            message "&c&lare against the rules."
            message "&6-----------------------------------------"        
            wait 24 hours
            set {toxicity::%player%} to false
code_language.skript:
on chat:
    if {toxicity::%player%} is true:
        add message to {toxic.messages::%player%}
 
command /cw [<offline-player>]:
    permission: "Community.Watch"
    trigger:
        send "Wait"


Similar errors here's a full list of it:
https://pastebin.com/dwVc8ZTr
 
first try to update your skript! There is probably error in skript.. so you cant fix it yourself.. just try update
 
Status
Not open for further replies.