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.

Options messages not working.

Discussion in 'Skript' started by King_Creeperz, Aug 24, 2021.

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

    King_Creeperz Member

    Joined:
    Oct 6, 2020
    Messages:
    40
    Likes Received:
    0
    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 (Text):
    1. options:
    2.   prefix: "&7[&c&lCombat&b&lLog&7]"
    3. on damage:
    4.     if {combatlog::%victim's uuid%} is true:
    5.         stop
    6.     if {combatlog::%attacker's uuid%} is true:
    7.         stop
    8.     set {combatlog::%victim's uuid%} to true
    9.     set {combatlog::%attacker's uuid%} to true
    10.     wait 5 seconds
    11.     set {combatlog::%victim's uuid%} to false
    12.     set {combatlog::%attacker's uuid%} to false
    13. on quit:
    14.     if {combatlog::%player's uuid%} is true:
    15.         broadcast "{@prefix} &c%player% left while in combat! he deserves a death!"
    16. on command:
    17.     if {combatlog::%player's uuid%} is true:
    18.         cancel event
    19.         send "{@prefix} &cYou can't use commands while in combat!"
    --- Double Post Merged, Aug 24, 2021, Original Post Date: Aug 24, 2021 ---
    message (so it can get to the top xD)
     
  2. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    Code (Text):
    1. options:
    2.   prefix: &7[&c&lCombat&b&lLog&7]
    Remove both "
     
  3. King_Creeperz

    King_Creeperz Member

    Joined:
    Oct 6, 2020
    Messages:
    40
    Likes Received:
    0
    I got help from discord server no need! sry I have a password choosed my google so I can't send messages on mobile
     
  4. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    Doesn't change anything really, Skript just copy pasterinos it into a string object anyways.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...