Options messages not working.

  • 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.

King_Creeperz

Member
Oct 6, 2020
45
0
8
I have been making combat log for my server but when I use options. it says that send "{@prefix} &cYou can't use commands while in combat!" to player is not a condition or effect. how do I make it so it doesn't say that. does options need a plugin? please tell me
My code:
Code:
options:
  prefix: "&7[&c&lCombat&b&lLog&7]"
on damage:
    if {combatlog::%victim's uuid%} is true:
        stop
    if {combatlog::%attacker's uuid%} is true:
        stop
    set {combatlog::%victim's uuid%} to true
    set {combatlog::%attacker's uuid%} to true
    wait 5 seconds
    set {combatlog::%victim's uuid%} to false
    set {combatlog::%attacker's uuid%} to false
on quit:
    if {combatlog::%player's uuid%} is true:
        broadcast "{@prefix} &c%player% left while in combat! he deserves a death!"
on command:
    if {combatlog::%player's uuid%} is true:
        cancel event
        send "{@prefix} &cYou can't use commands while in combat!"
[doublepost=1629778621,1629778299][/doublepost]message (so it can get to the top xD)
 
I got help from discord server no need! sry I have a password choosed my google so I can't send messages on mobile
 
Status
Not open for further replies.