SkQuery [1.13-1.21+] icon

SkQuery [1.13-1.21+] -----

An updated SkQuery fork.



Updates
Fixed:
  • Some compare classes not working in some cases.
  • Some null pointers
  • Fixed up some Lamba things
  • Changed how some things work, no noticeable difference.
Added:
  • A DEV_LIME boolean field for developers to tell if the server is running this fork.
  • A DISABLE_YAML boolean field for developers to disable SkQuery's yaml. Skellett uses this.
  • A method to disable the Yaml of SkQuery. SkQuery.disableYaml(boolean)
  • All these above are in the SkQuery.class
  • Added the ability to control Lamba's internally better (Developers addition)
  • Added a for each effect. This allows you to do multiple things with a lamba and lists
    Code (skript (Unknown Language)):
    %objects% for each %lambda%

    and

    %objects% where %predicate% for each %lambda% respectively
    The respectively makes the effect run double/triple/quad/infinite condition and effects simultaneously. So if the first lamba condition is true, it will run the first lamba effect. If the seventh lamba condition is true, it will run the seventh lamba effect etc.
  • Added beta testing lamba expressions. Was playing around with these. They shouldn't interfere or be visibly usable at the moment.
  • Re-added MySQL options and stuff for the time being. Revamping this later in it's own addon maybe.
Examples:

Code (skript (Unknown Language)):
function getConnectedBlocks(block: block):
    add {_block} to {return::*}
    loop all blocks in radius 1 around location of {_block} where [type of block input is type of {_block}]->[{return::*} doesn't contain block input]:
        add loop-value to {return::*}
        getConnectedBlocks(loop-value)
command /replace <item> <number> <item>:
    trigger:
        set {_now} to now
        getConnectedBlocks(target block)
        {return::*} where [chance of argument 2%] for each [set block at block input to argument 1]->[set block above block input to argument 3]
        broadcast "%difference between now and {_now}%"
        delete {return::*}
command /change <item>:
    trigger:
        set {_now} to now
        getConnectedBlocks(target block)
        {return::*} for each [set block at block input to argument]->[set block above block input to argument]
        broadcast "%difference between now and {_now}%"
        delete {return::*}
command /test:
    trigger:
        "this", "test.", "test2.", "is" and "dope" where [string input doesn't contain "."] for each [set string input to "&6%string input%"]->[broadcast "%string input% + %loop input%"]
command /assigner:
    trigger:
        all players where [size of {team::red::*} > {team::blue::*}]->[size of {team::blue::*} > {team::red::*}] for each [broadcast "&c&l%player input% is now on blue"]->[broadcast "&c&l%player input% is now on red"] respectively
The last respectively syntax adds the player to red if it's low or adds them to blue if the team is low occupied. I can help people understand the for each more if you PM me on SkUnity, Spigot or Discord, or you can just tag me.


This is probably the last update for awhile until 1.13 breaks this addon.
----------, Nov 16, 2017
Resource Information
Author:
----------
Total Downloads: 205,922
First Release: Feb 19, 2017
Last Update: Yesterday at 6:22 AM
Category: ---------------
All-Time Rating:
48 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings