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.


Discussion in 'Addon Releases' started by TPGamesNL, Aug 2, 2020.

  1. TPGamesNL

    Supporter Addon Developer Dev Programme

    Jan 20, 2018
    Likes Received:
    This addon is a fork of skript-mirror, and comes with a bunch of bug fixes and new features.
    Some of the important bug fixes and features:
    • Fixed async event listening
    • Fixed local variables issues being deleted after async java calls and after parse sections from custom syntax
    • Added support for newer Java versions and Java vendors
    • Added custom events
    • Added sections, with support for running code blocks async
    • Fixed class proxies and made them easier to use
    Code (Text):
    1. #1 Basic Java call:
    2. import:
    3.     java.lang.System
    5. set {_nl} to System.lineSeparator()
    7. #2 Event listening
    8. import:
    9.     org.bukkit.event.block.CauldronLevelChangeEvent
    11. on CauldronLevelChangeEvent:
    12.     broadcast "The cauldron at %event.getBlock().getLocation()% had its level changed from %event.getOldLevel()% to %event.getNewLevel()%"
    14. #3 Custom syntax
    15. effect send (experience|xp) change of %number% [with level %-number%] to %players%:
    16.     trigger:
    17.         set {_progress} to expr-1
    18.         set {_level} to expr-2
    19.         loop exprs-3:
    20.             set {_p} to loop-value
    21.             if {_level} is set:
    22.                 {_p}.sendExperienceChange({_progress}, {_level})
    23.             else:
    24.                 {_p}.sendExperienceChange({_progress})
    26. send xp change of 0.75 with level 9 to player
    Some full example scripts featuring new features from skript-reflect are coming soon.
    The documentation and a guide to get started is available on GitBook: tpgamesnl.gitbook.io.
    Issues and suggestions should be reported on GitHub.
    You can get help in the skript-mirror channel of the skUnity Discord, or you can ask questions in the skript-reflect discord.

Share This Page