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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon SkQuery [1.9-1.14+] 4.1.1

An updated SkQuery fork.

  1. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    605
    Likes Received:
    418
    Medals:
    LimeGlass submitted a new resource:

    [Unofficial] SkQuery fork [1.11.2+] - A SkQuery build to work with most Spigot versions 1.6-1.11+

    Read more about this resource...
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    [​IMG]
    dunno why i upgrade my spigot to 1.11.2 get error in format chest < slot chest >
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    Hey there,

    In this build, formatting an inventory slot to be unstealable appears to cancel any click event on the slot. Including blocking scripts on that slot from running. This wasn't always the case, is there any chance you could fix that?
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    LimeGlass updated [Unofficial] SkQuery fork [1.11.2+] with a new update entry:

    Bug fixes

    Read the rest of this update entry...
     
    • Like Like x 1
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    @BrettPlayMC It should work in all versions. If you get any errors, please notify me.
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    Ok! :emoji_slight_smile:
    I will test this and notify you!
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    The MySQL works perfect in older versions, but you only removed to use your addon with mysql. That's not good.
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    as you said, in older versions, and on newer version it doesn't, and as LimeGlass doesn't know how to fix the skQuery's mySQL stuff, and as this fork is for support the newer versions and not the older ones really, why would we care about a broken feature?

    He didn't remove it from skQuery to put it on his addon, he removed it because it wasn't working, and added mySQL support to his addon as an option.
     
    • Agree Agree x 2
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    How to make a projectile trail?
    SkQuery had this:
    trail projectile with particle drip lava
    Is it possible with your fork?
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    You can use Skellett and any particle addon

    Code (Skript):
    1. #For players with bows
    2. on shoot:
    3.     while ground state of projectile is false:
    4.         #spawn particle at location of projectile
    5.         wait a tick
    6. #For entities with bows
    7. on entity shoot:
    8.     if ground state of shot arrow is false:
    9.         #spawn particle at location of shot arrow
    10.         wait a tick
    11. #For projectile shooting like snowballs
    12. on projectile shoot:
    13.     if ground state of projectile is false:
    14.         #spawn particle at location of projectile
    15.         wait a tick
    Also you will need to add a test if the projectile/arrow hits an entity. Because the ground state is still considered false and will cause the while loop to run forever. Just add a test in the while loop to stop the while loop if it hit an enitty using variables or metadata.

    @Snow-Pyon I still might add mysql back. I just don't know.
     
    • Like Like x 1
    • Informative Informative x 1
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    Ok, so the skquery's trail effect does not work anymore? And you won't fix it?

    And how would I stop the while loop if it hits an entity?
     
    #12 ShaneBee, Feb 10, 2017
    Last edited by a moderator: Feb 10, 2017
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    Code (Skript):
    1. on entity shoot:
    2.     set metadata "Particle Projectile" of shot arrow to true
    3.     if ground state of shot arrow is false:
    4.         #spawn particle at location of shot arrow
    5.         wait a tick
    6.         if metadata "Hit entity" of shot arrow is true:
    7.             stop
    8. on damage:
    9.     if metadata "Particle Projectile" of attacker is true:
    10.         set metadata "Hit entity" of attacker to true
     
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    Hey, I'm not sure about something.
    I have this YAML file :
    Code (YAML):
    1. -1,-1:
    2.   Faction: 1
    3. 0,-1:
    4.   Faction: 1
    5.  
    I'd like to delete the first 2 lines but I don't find any working instruction:
    Code (Skript):
    1. delete yaml nodes "%{_x}%,%{_z}%.Faction" from file "MyPath.yml"
    2. delete yaml nodes with keys "%{_x}%,%{_z}%.Faction" from file "MyPath.yml"
    3. delete yaml value "%{_x}%,%{_z}%.Faction" from file "MyPath.yml"
    4. clear yaml value "%{_x}%,%{_z}%.Faction" from file "MyPath.yml"
    There isn't any console or Skript error, but it does nothing. I checked if I had the good path and it's right. Did you do a mistake or didn't I understand something?
     
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    You can set it to null with SkQuery or you can set it to "" or you can use the reset
     
  16. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    This one is okay:
    Code (Skript):
    1. set yaml value "%{_x}%,%{_z}%.Faction" from file "MyPath.yml" to ""
    but the others do nothing too:
    Code (Skript):
    1. set yaml value "%{_x}%,%{_z}%.Faction" from file "MyPath.yml" to null
    2. reset yaml value "%{_x}%,%{_z}%.Faction" from file "MyPath.yml"
    I'll use the one which works but maybe you'd want to fix the others, so I tell you.
     
    • Agree Agree x 1
  17. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    what's the point of updating skquery without mysql support witch is the thing that gives skquery it's name D:
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    I am not sure if you are able to fix this, but if it is possible, can you?
    I am getting an error whilst using 1.8.8-R0.1-SNAPSHOT on SkQuery version 3.5.5-Lime.
    Code (Java):
    1. [11:14:06] [Server thread/INFO]: [SkQuery] Enabling SkQuery v3.5.5-Lime
    2. [11:14:06] [Server thread/INFO]: [skQuery] Snooping enabled from com.w00tmast3r.skquery.SkQuery
    3. [11:14:06] [Server thread/INFO]: [skQuery] Locating classes from SkQuery...
    4. [11:14:06] [Server thread/INFO]: [skQuery] Finished snooping of SkQuery with 135 classes.
    5. [11:14:06] [Server thread/INFO]: [skQuery] Beginning to process a total of 135 from SkQuery
    6. [11:14:06] [Server thread/ERROR]: Error occurred while enabling SkQuery v3.5.5-Lime (Is it up to date?)
    7. java.lang.NoSuchMethodError: ch.njol.skript.Skript.classExists(Ljava/lang/String;)Z
    8.     at com.w00tmast3r.skquery.elements.Types.run(Types.java:206) ~[?:?]
    9.     at com.w00tmast3r.skquery.Registration.register(Registration.java:151) ~[?:?]
    10.     at com.w00tmast3r.skquery.Registration.enableSnooper(Registration.java:69) ~[?:?]
    11.     at com.w00tmast3r.skquery.SkQuery.onEnable(SkQuery.java:25) ~[?:?]
    12.     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
    13.     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    14.     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    15.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    16.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    17.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    18.     at org.bukkit.Bukkit.reload(Bukkit.java:535) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    19.     at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    20.     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    21.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    22.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    23.     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    24.     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    25.     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    26.     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-21fe707-e1ebe52]
    27.     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
    Thanks for any support.
     
  20. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,054
    Likes Received:
    144
    What Skript version are you using?
     
Loading...