Chat problem:

  • 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 community!

    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.

Itqly_

Member
Sep 20, 2018
29
1
0
Hello there, I was creating a Chat skript for my server, all went fine till I added a part of the skript where is the name of the player who chat is "Itqly" or "zProHD" (Owners) then "Mute", "Mutechat" (mutechat command is in another skript) and "Chatcooldown" are disabled, then all the skript stop working... :emoji_slight_frown:

Here is the skript Im using:

code_language.skript:
on chat:
    if player's name is "zProHD" or "Itqy":
        set {chatdisabled.%player%} to "false"
        set {muted.%player%} to "false"
        set {cooldown.%player%} to "false"
    if {chatdisabled.%player%} is "true":
        if player has permission "message.admin":
            cancel event
            set {chatdisabled.%player%} to "false"
            send "&f» &7Since you were &aOP &7or &aAdmin &7rank your &4C&ch&6a&et &7was unmuted"
            stop
        else:
            if {muted.%player%} is true:
                cancel event
                send "&f» &7You are muted"
                stop
            else:
                cancel event
                send "&f» &7Chat is currently muted"
                stop
    else if {chatdisabled.%player%} is "false":
        if {cooldown.%player%} is "true":
            cancel event
            send ""
            send "&f» &7Wait 1 second between messages"
            send ""
        else if {cooldown.%player%} is "false":
            if player's name is "Itqly" or "zProHD":
                if {muted.%player%} is false:
                    cancel event
                    broadcast "&7[&cOwner&7]&f%player% &7» &f%colored message%"
                    set {cooldown.%player%} to "true"
                    wait 1 second
                    set {cooldown.%player%} to "false"
                    stop
                else if {muted.%player%} is true:
                    cancel event
                    send "&f» &7You are muted"
                    stop
            if player has permission "message.admin":
                if {muted.%player%} is false:
                    cancel event
                    broadcast "&7[&aAdmin&7]&f%player% &7» &f%colored message%"
                    set {cooldown.%player%} to "true"
                    wait 1 second
                    set {cooldown.%player%} to "false"
                    stop
                else if {muted.%player%} is true:
                    cancel event
                    send "&f» &7You are muted"
                    stop
            if player has permission "message.helper":
                if {muted.%player%} is false:
                    cancel event
                    broadcast "&7[&2Helper&7]&f%player% &7» &f%colored message%"
                    set {cooldown.%player%} to "true"
                    wait 1 second
                    set {cooldown.%player%} to "false"
                    stop
                else if {muted.%player%} is true:
                    cancel event
                    send "&f» &7You are muted"
                    stop
            if player has permission "message.builder":
                if {muted.%player%} is false:
                    cancel event
                    broadcast "&7[&eBuilder&7]&f%player% &7» &f%colored message%"
                    set {cooldown.%player%} to "true"
                    wait 1 second
                    set {cooldown.%player%} to "false"
                    stop
                else if {muted.%player%} is true:
                    cancel event
                    send "&f» &7You are muted"
                    stop
            if player has permission "message.default":
                if {muted.%player%} is false:
                    cancel event
                    broadcast "&f%player% &7» &f%colored message%"
                    set {cooldown.%player%} to "true"
                    wait 1 second
                    set {cooldown.%player%} to "false"
                    stop
                else if {muted.%player%} is true:
                    cancel event
                    send "&f» &7You are muted"
                    stop
on sign change:
    player has permission "signs.color":
        replace "&" with "§" in line 1
        replace "&" with "§" in line 2
        replace "&" with "§" in line 3
        replace "&" with "§" in line 4
[doublepost=1542014755,1542012742][/doublepost]I got no errors while reloading, Im usin skript skRayFall and skQuery
 
post your errors
as well as your Spigot and Skript versions (please dont say latest)
Also the versions of the addons
 
Status
Not open for further replies.