Skip to content

Releases: SkriptLang/skript-reflect

Now compatible with Skript 2.8!

16 Jan 00:23
d49527b
Compare
Choose a tag to compare

skript-reflect 2.4

skript-reflect 2.4 is here with compatibility for the newest versions of Skript! Even more exciting, this is the first skript-reflect release officially under SkriptLang. We are excited to continue development of this important addon.

As always, report any issues to our issues page.

Happy Skript-reflecting!

Changelog

Additions

  • Added a plugin instance expression to easily get an instance of a plugin

Example: set {_skript} to the instance of plugin "Skript"

Changes

  • Support for Skript 2.8 and 2.7.
  • Lots of internal cleanup to stabilize the addon for these versions.

Click here to view the full list of commits made since 2.3

Notices

Help Us Test

We have an official Discord community for beta testing new SkriptLang features and releases. We appreciate all the testers who helped us test this release!

Thank You

Special thanks to the contributors whose work was included in this version:

As always, if you encounter any issues or have some minor suggestions, please report them at https://github.com/SkriptLang/skript-reflect/issues.
If you have any bigger ideas or input for the future of skript-reflect, you can share those too at https://github.com/SkriptLang/skript-reflect/discussions.

Now requires Skript 2.6.1

05 Apr 15:15
ab30f82
Compare
Choose a tag to compare

This version of skript-reflect requires Skript 2.6.1 (or above)

Bug fixes, improvements to proxies and (primitive) arrays, more improvements.

Changelog:

  • Fix Java calls to some caller sensitive methods
  • Added more warnings and errors at parsetime
  • Improve (primitive) array handling
  • Added new array expression
  • Fix NPE when attempting to use undefined changer on custom expression
  • Improve proxies:
    • Call default method if no implementation found (Java 16+)
    • Add default implementation for toString, hashCode and equals
    • Fix return value not converting to the right type
  • Fix bug causing duplicate Bukkit event triggers
  • Add parse tag expression
  • Add import effect for usage in effect commands
  • Fix memory leak caused by return effect
  • Add plugin instance expression (thanks @Pikachu920) (EDIT: turns out it's actually not in this release haha got ya)

If you want a bigger changelog, see v2.2.3...v2.3

Bug fixes and improvements

07 Aug 13:22
42ec564
Compare
Choose a tag to compare

Note:
skript-reflect will stop supporting Skript versions below 2.6 when a stable Skript 2.6 version is released. This means that this could be the last skript-reflect version that supports 2.5.3 and 2.2-dev36.

Changelog:

  • Fix declaringClass NPE
  • Improve Java call errors with difference between static and non-static
  • Allow primitives in class literal expression
  • Improve inner class import system, for example set {_phase} to EnderDragon.Phase.LEAVE_PORTAL if EnderDragon is imported
  • Fix Java calls with numerical wrapper parameter types
  • Fix custom event expression with only data specified
  • Fix custom expression with return type being allowed in places where a different type is required

Skript 2.6 / MC 1.17 support

03 Jul 09:54
c6feb15
Compare
Choose a tag to compare

Fixes:

  • Fix the run section effect not storing a result
  • Fix #34
  • Fix #37
  • Fix the event expression not returning the right event
  • Fix events not being marked as delayed at runtime
  • Make skript-reflect compatible with Skript 2.6
  • Fix #39
  • Make compiling output jar always Java 8 compatible
  • Fix Java call descriptor parsing
  • Change some warning prefixes
  • Improve Java call errors
  • Improve Java 16 compatibility

Additions:

Bug fixes

08 Feb 17:08
0ac0955
Compare
Choose a tag to compare

Fixed issues with some expressions not parsing when they should:

  • Matched pattern expression
  • Parse mark expression
  • Expr-n expression
  • Parse regex expression
    Fixed issue with local variables being deleted after running sections.

v2.2.0

03 Feb 14:24
adea421
Compare
Choose a tag to compare

Fixed:

  • Fixed setting raw expression to multiple values.
  • Fixed local variables being deleted with delayed effects.
  • Fixed NPE for varargs methods with a single given argument.
  • Fixed startup error on 1.13 and 1.14.
  • Fixed reflective events firing twice.
  • Fixed NPE with expression-expression where the number is higher than allowed by the pattern.
  • Fixed syntax conflict with MundoSK custom events.
  • Fixed matched pattern expression and return effect being initiated when they shouldn't be.
  • Fixed calling methods using parameter type specification (overloaded methods).
  • Fixed raw expression returning wrong values when called from any WrappedEvent, such as custom elements.
  • Fixed return effect giving wrong errors.

Added:

Preloading and some bug fixes

24 Dec 12:09
75476f4
Compare
Choose a tag to compare
Pre-release

Added preloading, see https://tpgamesnl.gitbook.io/skript-reflect/advanced/experiments#preloading.
Fixed some bugs:

  • Fixed setting ExprRawExpression to multiple values.
  • Added errors for return after a delay.
  • Fix local variables being deleted with delayed effects.
  • Fix NullPointerException for varargs methods with a single given argument.
  • Fixed startup error on 1.13 and 1.14.
  • Fix EvtByReflection firing twice (sort of, see d8c4780).

Also merry christmas (:

v2.1.0

02 Aug 16:33
Compare
Choose a tag to compare

Initial release of skript-reflect.

Changelog:

  • Changed 'no matching method/field/constructor' error depending on whether the call is static or not.
  • Fixed function wrapper resolving when functions are deleted.
  • Removed condition part of syntax from EffReturn.
  • Disabled and/or warnings (all of them, not just in method / constructor calls).
  • Fixed local variables disappearing after async java calls.
  • Added error message for missing consent for experimental features.
  • Removed proxies from the experiments.
  • Changed the consent message (previous message still works).
  • Indicated to Skript that async java calls delay the trigger.
  • Added error message for invalid (not entry or section) nodes in custom syntax.
  • Added usable in sections to custom effects, conditions and expressions.
  • Added custom events.
  • Allow changing raw expressions.
  • Fixed local variables being removed between after parse sections in custom syntax.
  • Added warnings for custom syntax missing their required sections.
  • Fixed async event listening.
  • Fixed cancelled event listening.
  • Added a string form of java calls, to be used in errors.
  • Fixed issues with newer Java versions and vendors.
  • Fixed class proxies.
  • Added sections.
  • Allow sections to be used instead of function wrappers in proxies.