Bad Syntax Bug: Stringequals Condition

Discussion in 'Bug Reports' started by cookiexxl, Jan 13, 2020.

  1. cookiexxl

    cookiexxl New Member
    Premium Supporter Supporter

    Joined:
    Apr 24, 2018
    Messages:
    9
    Likes Received:
    0
    Enter a brief description of what is broken Stringequals Condition

    What version of Minecraft are you using? 1.14

    What server jar are you using? PaperSpigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? Latest 4.9-SNAPSHOT

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    As I wanted to make a condition that requires the caster to have a certain amount of experience I got suggest to use the stringequals condition. This has been tested on my server (which has the latest builds of all plugins necessary to run the condition) and on one that has non-dev/older versions it does work.

    Example Configurations
    Snippet (debug 4 is on) - https://pastebin.com/nTACNwEy
    Skill - https://pastebin.com/MZ9DJ42x
    Server latest log - https://pastebin.com/nhCgXBmH
     
    #1
  2. jaylawl

    jaylawl Community Manager
    Community Manager Premium Supporter Supporter Quality Assurance

    Joined:
    Sep 16, 2015
    Messages:
    1,817
    Likes Received:
    174
    i have no way of testing that but on a different note:

    that condition looks so horribly complicated: why not instead just use denizen to make a mythicmobs API call for the skill to be cast?
     
    #2
  3. MythicCraft

    MythicCraft Administrator
    Administrator Developer Community Manager Premium Supporter Supporter Quality Assurance

    Joined:
    Jul 18, 2015
    Messages:
    674
    Likes Received:
    236
    - stringequals{val=1"true";
    val=1"true";
     
    #3
  4. cookiexxl

    cookiexxl New Member
    Premium Supporter Supporter

    Joined:
    Apr 24, 2018
    Messages:
    9
    Likes Received:
    0
    Well, I don't really know Denizen and someone helped me by making that condition for me as I was looking for a way to use check exp (for players) in a condition.

    Am I supposed to do something with this?
     
    #4
  5. jaylawl

    jaylawl Community Manager
    Community Manager Premium Supporter Supporter Quality Assurance

    Joined:
    Sep 16, 2015
    Messages:
    1,817
    Likes Received:
    174
    It's supposed to tell you that's bad syntax. Suppose you wanted val1="true"
     
    #5
    cookiexxl likes this.
  6. cookiexxl

    cookiexxl New Member
    Premium Supporter Supporter

    Joined:
    Apr 24, 2018
    Messages:
    9
    Likes Received:
    0
    Omg, sorry. Thanks!
     
    #6
  7. cookiexxl

    cookiexxl New Member
    Premium Supporter Supporter

    Joined:
    Apr 24, 2018
    Messages:
    9
    Likes Received:
    0
    Even upon changing the line to val1= it still doesn't work.
    Code:
    - stringequals{val1="true";val2="%denizen_<player[<caster.uuid>].xp_total.is[or_more].to[500]||null>%"}
     
    #7

Share This Page