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

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    Don't deleted yaml value and yaml list!
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    It wasn't deleted and it's still in other addons anyway (Skellett & SkUtilities). For the other side, here is a good reason to not use YAML in Skript:
    https://forums.skunity.com/threads/dont-use-yaml.3850/
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    @LimeGlass
    Using this add-on instead of the "official" SkQuerry3 guarantees support from 1-6 to 1.12.x?
     
    • Like Like x 1
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    how can create a custom expression ;-;
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    You don't, skQAddons have been broken even before this fork has been released and I doubt it'll be something easy to fix, just use functions.
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    Sub routines and SkQuery addons are two different things, the skqAddon functions are broken if that's what you were referring too. Function are better than sub routines.

    @CziSKY if your looking for custom expressions you can look at older skqAddon downloads which can be found by asking around if anyone has a download on discord or ask ImOfflinezzz for more info, he used to use them alot.
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    This skQuery effect does not seem to work in your fork:

    on shoot:
    trail projectile with particle drip lava

    Is this something you could fix?
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    It was removed in Gatt's edit which this is a fork of. You can just use a while loop
     
  9. M

    MrNygus Well-Known Member

    Joined:
    Jan 28, 2017
    Messages:
    56
    Likes Received:
    1
    Can't understand this condition/effect: set is visible of {_target} to false (xxx.sk, line 7: set is visible of {_target} to false')
     
  10. jdogduffy

    jdogduffy Member

    Joined:
    Jun 16, 2017
    Messages:
    19
    Likes Received:
    1
    I suppose you might not check your private messages... so here you go

    Hey, I know you are busy with school, but whenever you get a chance please take a look at this...

    It spams my console every 2 seconds.

    https://hastebin.com/cariquhawe.vbs
     
  11. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    605
    Likes Received:
    418
    Medals:
    That's not a syntax, what are you trying to do?
    --- Double Post Merged, Oct 28, 2017, Original Post Date: Oct 28, 2017 ---
    What's your SkQuery version, spigot version, Skript version, the code you are using and the file directory you are trying to use at. Not a mind reader.
     
  12. ShaneBee

    Supporter + Addon Developer

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

    Updates

    Read the rest of this update entry...
     
  13. Acenox

    Acenox Member

    Joined:
    Feb 6, 2017
    Messages:
    8
    Likes Received:
    0
    Hello,

    I have a problem with your plugin that I also meet with the SkQuery plugin, could you fix it please? (I find myself with a lot of mistakes ...)
    Code (Skript):
    1. [14:21:34] [Server thread/ERROR]: Could not pass event PlayerKickEvent to SkQuery v3.6.0-Lime
    2. org.bukkit.event.EventException
    3.     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    4.     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    5.     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    6.     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    7.     at net.minecraft.server.v1_8_R3.PlayerConnection.disconnect(PlayerConnection.java:166) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    8.     at net.minecraft.server.v1_8_R3.PlayerConnection$6.evaluate(PlayerConnection.java:1048) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    9.     at org.bukkit.craftbukkit.v1_8_R3.util.Waitable.run(Waitable.java:24) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    10.     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:729) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    11.     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    12.     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    13.     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    14.     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]
    15. Caused by: java.lang.IllegalArgumentException: Attachment cannot be null
    16.     at com.github.cheesesoftware.PowerfulPerms.CustomPermissibleBase.removeAttachment(CustomPermissibleBase.java:139) ~[?:?]
    17.     at org.bukkit.craftbukkit.v1_8_R3.entity.CraftHumanEntity.removeAttachment(CraftHumanEntity.java:126) ~[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    18.     at com.w00tmast3r.skquery.skript.PermissionsHandler.onKick(PermissionsHandler.java:50) ~[?:?]
    19.     at sun.reflect.GeneratedMethodAccessor655.invoke(Unknown Source) ~[?:?]
    20.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151]
    21.     at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151]
    22.     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    23.     ... 11 more

    Did I make a mistake in one of my codes? Or does it come from another plugin?

    Regards,
     
  14. MartinOdum

    MartinOdum Member

    Joined:
    Jan 26, 2017
    Messages:
    111
    Likes Received:
    13
    Can you provide your skript code that is causing this error?
     
  15. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    605
    Likes Received:
    418
    Medals:
    Seems like PowerfulPerms is conflicting with it, can you uninstall PowerfulPerms on a test server and see if the issue still happens?
     
  16. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    hey @LimeGlass
    I know that thru SkQuery you can do "Register shaped recipes" to create recipes for custom items (Such as <item> named <name>)
    Is it possible to add in, where a person could register a recipe with custom ingredients?
    For example, I create a recipe for my grenades, which is a poisonous potato named "Grenade" ... but i want to create another grenade, which would use the original grenade as one of the ingredients.
    I think this would be a super awesome add-on that i am sure MANY people would find VERY useful.

    Hopefully this is a possibility.
    Thank you for your time!
     
    • Like Like x 1
  17. LimeGlass

    Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    605
    Likes Received:
    418
    Medals:
    Use Tuske. Tuske uses itemstack and checks for comparisons. SkQuery just uses the itemtype (Aliases) name.
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,055
    Likes Received:
    144
    Ah thanks, ill give it a look
    --- Double Post Merged, Apr 2, 2018, Original Post Date: Apr 2, 2018 ---
    Looking at the syntaxes for tuske, I do not understand how to CREATE a recipe, i see how to "get" recipes from an item, but now how to create a recipe
     
  19. jomjonejame

    jomjonejame Member

    Joined:
    Jan 26, 2017
    Messages:
    54
    Likes Received:
    1
    SkQuery 3.6.0-Lime

    Code (Skript):
    1. [13:32:44] [Server thread/WARN]: java.sql.SQLException: Operation not allowed after ResultSet closed
    2. [13:32:44] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
    3. [13:32:44] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
    4. [13:32:44] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
    5. [13:32:44] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
    6. [13:32:44] [Server thread/WARN]:     at com.mysql.jdbc.ResultSetImpl.checkClosed(ResultSetImpl.java:794)
    7. [13:32:44] [Server thread/WARN]:     at com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:7145)
    8. [13:32:44] [Server thread/WARN]:     at com.w00tmast3r.skquery.elements.expressions.ExprSQLQueryObjects.get(ExprSQLQueryObjects.java:33)
    9. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:104)
    10. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.effects.EffChange.execute(EffChange.java:268)
    11. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.Effect.run(Effect.java:52)
    12. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    13. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    14. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
    15. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.function.ScriptFunction.execute(ScriptFunction.java:95)
    16. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.function.Function.execute(Function.java:112)
    17. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.function.FunctionReference.execute(FunctionReference.java:193)
    18. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.function.EffFunctionCall.execute(EffFunctionCall.java:53)
    19. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.Effect.run(Effect.java:52)
    20. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    21. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    22. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
    23. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:266)
    24. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:230)
    25. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.command.Commands.handleCommand(Commands.java:253)
    26. [13:32:44] [Server thread/WARN]:     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:168)
    27. [13:32:44] [Server thread/WARN]:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    28. [13:32:44] [Server thread/WARN]:     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    29. [13:32:44] [Server thread/WARN]:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    30. [13:32:44] [Server thread/WARN]:     at java.lang.reflect.Method.invoke(Unknown Source)
    31. [13:32:44] [Server thread/WARN]:     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
    32. [13:32:44] [Server thread/WARN]:     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    33. [13:32:44] [Server thread/WARN]:     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    34. [13:32:44] [Server thread/WARN]:     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    35. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
    36. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
    37. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
    38. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
    39. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
    40. [13:32:44] [Server thread/WARN]:     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    41. [13:32:44] [Server thread/WARN]:     at java.util.concurrent.FutureTask.run(Unknown Source)
    42. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
    43. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
    44. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
    45. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
    46. [13:32:44] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
    47. [13:32:44] [Server thread/WARN]:     at java.lang.Thread.run(Unknown Source)
    Code (Skript):
    1. script options:
    2.     $ db url jdbc:mysql://localhost:3306/???
    3.     $ db username ???
    4.     $ db password ???
    5.  
    6. function getStatus(p:player):
    7.     set {_query} to result of query "SELECT * FROM `mc_user_status` WHERE `username` = '%{_p}%'"
    8.     set {_Level::*} to objects in column "level" from {_query}
    9.     set {_minEXP::*} to objects in column "minEXP" from {_query}
    10.     set {_maxEXP::*} to objects in column "maxEXP" from {_query}
    11.     set {_STR::*} to objects in column "str" from {_query}
    12.     set {_AGI::*} to objects in column "agi" from {_query}
    13.     set {_DEX::*} to objects in column "dex" from {_query}
    14.     set {_point::*} to objects in column "point" from {_query}
    15.  
    16.     send " Level: %{_Level::*}% ( EXP: %{_minEXP::*}%/%{_maxEXP::*}% )" to {_p}
    17.     send " STR: %{_STR::*}%" to {_p}
    18.     send " AGI: %{_AGI::*}%" to {_p}
    19.     send " DEX: %{_DEX::*}%" to {_p}
    20.     send " Status Point: %{_point::*}%" to {_p}
    21.  
    22. command /level:
    23.     trigger:
    24.         getStatus(player)
     
  20. L

    LuisGerdez Member

    Joined:
    Feb 2, 2017
    Messages:
    7
    Likes Received:
    0
    I use spigot 1.10 and 1.9.2 and it's the same
    Skript 2.2

    Code (Skript):
    1. [14:37:09] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Reloading all scripts...[m
    2. [14:37:09] [Server thread/WARN]: java.io.FileNotFoundException: ..\..\MicroBattles\config.yml (Acceso denegado)
    3. [14:37:09] [Server thread/WARN]:     at java.io.FileOutputStream.open0(Native Method)
    4. [14:37:09] [Server thread/WARN]:     at java.io.FileOutputStream.open(Unknown Source)
    5. [14:37:09] [Server thread/WARN]:     at java.io.FileOutputStream.<init>(Unknown Source)
    6. [14:37:09] [Server thread/WARN]:     at java.io.FileOutputStream.<init>(Unknown Source)
    7. [14:37:09] [Server thread/WARN]:     at org.bukkit.configuration.file.FileConfiguration.save(FileConfiguration.java:70)
    8. [14:37:09] [Server thread/WARN]:     at org.bukkit.configuration.file.FileConfiguration.save(FileConfiguration.java:97)
    9. [14:37:09] [Server thread/WARN]:     at com.w00tmast3r.skquery.elements.expressions.ExprYaml.change(ExprYaml.java:144)
    10. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.effects.EffChange.execute(EffChange.java:273)
    11. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.lang.Effect.run(Effect.java:54)
    12. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
    13. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
    14. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
    15. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.events.EvtScript.register(EvtScript.java:63)
    16. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:516)
    17. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:245)
    18. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:199)
    19. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.Skript.reloadScripts(Skript.java:647)
    20. [14:37:09] [Server thread/WARN]:     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:134)
    21. [14:37:09] [Server thread/WARN]:     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    22. [14:37:09] [Server thread/WARN]:     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
    23. [14:37:09] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:647)
    24. [14:37:09] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchServerCommand(CraftServer.java:633)
    25. [14:37:09] [Server thread/WARN]:     at net.minecraft.server.v1_10_R1.DedicatedServer.aL(DedicatedServer.java:438)
    26. [14:37:09] [Server thread/WARN]:     at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:401)
    27. [14:37:09] [Server thread/WARN]:     at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668)
    28. [14:37:09] [Server thread/WARN]:     at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567)
    29. [14:37:09] [Server thread/WARN]:     at java.lang.Thread.run(Unknown Source)
    30. [14:37:09] [Server thread/INFO]: All scripts loaded without errors.
    31. [14:37:09] [Server thread/INFO]: Loaded 1 script with a total of 1 trigger and 0 commands in 0.04 seconds
    32. [14:37:09] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Successfully reloaded all scripts.[m

    Code (Skript):
    1. on load:
    2.     if file existance of "plugins/test/config.yml" is false:
    3.         create file "plugins/test/config.yml"
    4.         set yaml value "config.test" from file "../../test/config.yml" to "test"
     
Loading...