skript-mirror

Addon skript-mirror 0.19.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!

  • Fix issues with object wrappers
  • Remove the stack trace expression
  • Restrict import aliases to valid Java identifiers
  • Remove multiple as a synonym for plural/non-single
  • Fix try expressions not being converted correctly
  • Fix parse sections being parsed multiple times
  • Fix an NPE with nullable expressions in parse sections
  • Start localization
  • Allow the spread expression to spread streams
  • Register custom syntax earlier so that they can be used recursively
  • Wrap unknown Java objects (#50)
  • Fix how varargs methods are resolved (#51)
  • Prevent the usage of "on" in custom syntax sections (#52)
  • Fix the resolution of private methods and fields declared in superclasses (#56)
  • Unwrap nested arrays (#58)
  • Add matched pattern expression (#59)
  • Preserve local variables from parse events in other handlers (#60)
⚠️ Breaking Changes
  • type is no longer a synonym for class
  • the last java error now returns the actual error object instead of the message
  • Add a section for intercepting the initialization of custom syntax at parse-time (#26)
  • Add a conditional continue utility for conditions and effects (#45)
  • Add a flag for making custom syntax script-local
  • Add a flag for making java calls execute on a separate thread
  • Fix a bug where the array access expression would throw an NPE if its type was converted
  • A whole bunch of internal refactoring
⚠️ Breaking Changes
As each issue closes one-by-one, skript-mirror gets closer and closer to a stable release! While we're making a lot of changes that should improve the developer experience, it's important to note that some of those changes are not backward-compatible. Please sit tight while things stabilize!

  • Replace the old import system with a new script-local expression-based system.
  • Make property expressions and conditions operate on single expressions (#33)
  • Reintroduce optional return values for expressions
  • Fix an NPE with dynamic descriptors (#41)
  • Fix custom syntax handlers not logging parse messages
  • Create an array wrapper type to avoid issues with Skript's handling of arrays (#2)
  • Allow conditions to be negated (#38)
  • Fix deleting fields
  • Add a flag for listening to canceled events (#24)
  • Add an expression for interacting with arrays (#9)
⚠️ Breaking Changes
skript-mirror is getting closer to a stable 1.0 release! We're using these last few 0.X releases to do any necessary breaking changes while we still can.

This update introduces some massive changes that will break all existing custom syntax declarations. Thankfully, custom syntax in this version is effectively final and will not see any breaking changes in the future.

  • Custom syntax declarations have been completely overhauled and look much more like command declarations
  • Return (for expressions) and continue (for effects and conditions) are now separate (#42)
  • Add a converter from classinfos to javatypes
  • Add an instance of condition (#36)
  • Fix arrays not using the correct component type (#39)
⚠️ Breaking Changes
  • Syntax for continue changed to return [%-objects%] (#30)
  • Syntax for null changed to null
  • Add experimental support for implementing interfaces
  • Add custom conditions
  • Add an expression for getting a raw expression from a custom expression
  • Preserve null during casting (#10)
  • Improve error messages (#15)
  • Deal with UnparsedLiterals properly (#16, #18)
  • Add custom aliases for object for readability (#20)
  • Implement debug messages properly (#21)
  • Fix type coercion (#22)
⚠️ Breaking Changes
  • Change modes now start with "to "
  • Fix the index of expressions displayed in toString()
  • Add missing parser mark expression
  • Add missing regex expression
  • Fix issues with passing event-dependent expressions to custom syntax
  • Fix an NPE when a method or field is called on nothing (#11)
  • Fix error propagation during lookups (#12)
  • Create separate expressions for tracking errors (#17)
  • Add experimental custom syntax support
  • Check for the existence of the plugin folder before attempting to load libraries (#7)
  • Like
Reactions: Goetheus
⚠️ Breaking Changes
  • Event priorities now use Bukkit's event priority names instead of numbers
  • Allow the spread expression to spread iterables and iterators
  • Fix casting to java types for older versions of Skript (#5)
  • Load external libraries from skript-mirror's plugin folder (#6)
  • Allow the spread expression to spread primitive arrays (#4)