Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency com.github.SkriptLang:Skript to v2.9.5 #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 3, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.github.SkriptLang:Skript (source) 2.6.2 -> 2.9.5 age adoption passing confidence

Release Notes

SkriptLang/Skript (com.github.SkriptLang:Skript)

v2.9.5: Patch Release 2.9.5

Compare Source

Skript 2.9.5

Skript 2.9.5 is here with a handful of new bug fixes. As always, you can report any issues on our issue tracker.

Happy Skripting!

Changelog

Tweaks
  • #​7232 Improved the documentation of the 'projectile hit' event to be up to date with the 'victim' syntax.
Bug Fixes
  • #​7062 Fixed an error that would occur when attempting to place blocks between two points above the world limit.
  • #​7120 Fixed an issue where various expressions (enchant effect, replace effect, vector expressions, etc.) would overwrite the indices of list variables used.
  • #​7152 Fixed an issue where player skull textures would not immediately load on Paper (loading is now forced).
  • #​7188 Fixed an issue where plural event values did not work with 'past' and 'future' time states.
  • #​7195 Fixed a few Turkish language mistakes.
  • #​7199 Fixed multiple issues with playing sounds on 1.21.3+.
  • #​7202 Fixed an error that could occur when using invalid regular expression patterns in the split expression.
  • #​7210 Fixed long overflow when performing arithmetic.
  • #​7230 Fixed an issue that could occur when trying to grow new tree types (e.g. pale oak).
API Additions
  • #​7120 Added a new 'Expression#changeInPlace()' method for changing the elements of an expression without changing the entire object. For example, this allows the values of a list variable to be updated while preserving the indices.
  • #​7207 Updated the 'Arithmetics#exactOperationExists' and 'Arithmetics#exactDifferenceExists' methods to be public. They act as a safe way to check arithmetic operation existence during the registration period.

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

Notices

Help Us Test

We have an official Discord community for beta testing Skript's new features and releases.

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/issues.
If you have any bigger ideas or input for the future of Skript, you can share those too at https://github.com/SkriptLang/Skript/discussions.

v2.9.4: Patch 2.9.4

Compare Source

Skript 2.9.4

Skript 2.9.4 is here with even more bug fixes and early support for Minecraft 1.21.3. As always, you can report any issues on our issue tracker.

Happy Skripting!

Changelog

Bug Fixes
  • #​7141 Fixes leather horse armor being unequipable.
  • #​7143 Fixed entries being case-sensitive, preventing using capital letters in entries like 'Usage: ' for commands.
Additions

This includes: Pale Garden biome, creaking entity, baby squid entity, baby glow squid entity, baby dolphin entity

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

Notices

Help Us Test

We have an official Discord community for beta testing Skript's new features and releases.

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/issues.
If you have any bigger ideas or input for the future of Skript, you can share those too at https://github.com/SkriptLang/Skript/discussions.

v2.9.3: Patch 2.9.3

Compare Source

Skript 2.9.3

Skript 2.9.3 is here with even more bug fixes. As always, you can report any issues on our issue tracker.

We are also excited to welcome six new members to our team! These new members were selected from the numerous applications we received, and they have already been hard at work troubleshooting issues, patching bugs, and building new features. The full list of new members is as follows:

Happy Skripting!

Changelog

Bug Fixes
  • #​7024 Fixed an error that could occur when using invalid inputs in the 'look at' effect.
  • #​7027 Fixed some bStats reporting issues from the recent changes.
  • #​7031 Fixed formatting issues when reloading a directory.
  • #​7036 Fixed numerous and/or warnings that occurred in the tests.
  • #​7038 Fixed the within condition returning wrong values when negated and given a null input.
  • #​7052 Fixed an issue where 'Dutch' was not one of the language options listed in the config.
  • #​7056 Fixed removing entries from the hover list in a server ping event.
  • #​7060 Fixed exponents capping at long max value.
  • #​7066 Fixed an issue where the 'swim toggle' event could be cancelled. An error is now printed as cancelling it has no effect.
  • #​7067 Fixed an internal testing issue with the parse structure.
  • #​7082 Fixed an issue with modifying world times.
  • #​7085 Fixed an error message that could occur from unregistered types in changers.
  • #​7087 Fixed an issue where legacy materials were used in places they shouldn't.
  • #​7091 Fixed a bug when setting the profile of a skull to an offline player without a username.
  • #​7121 Fixed a redundant material namespace check.
API Updates
  • #​6992 Removed the usage of Eclipse annotations package. The JetBrains annotations package is now preferred.
  • #​7089 Introduced an official checkstyle for code formatting warnings.
  • #​7095 Prevents delays from being used in the testing system (excluding JUnit).

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

Notices

Help Us Test

We have an official Discord community for beta testing Skript's new features and releases.

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/issues.
If you have any bigger ideas or input for the future of Skript, you can share those too at https://github.com/SkriptLang/Skript/discussions.

v2.9.2: Patch Release 2.9.2

Compare Source

Skript 2.9.2

Skript 2.9.2 is here with more bug fixes and a few minor additions and tweaks. As always, you can report any issues on our issue tracker.

Happy Skripting!

Changelog

Additions
  • #​6942 Added Dutch language support.
  • #​7008 Added support trial spawners in the spawner type syntax.
Tweaks
  • #​6984 Enhanced and expanded the BStats charts.
  • #​7023 Improved the performance of the 'book authors' expression.
Bug Fixes
  • #​5073 Fixed an issue where items did not work with the 'is of type' condition.
  • #​6936 Fixed an issue with unreliable parsing of quotes in command arguments.
  • #​6942 Fixed a mistake in the German language support.
  • #​6982 Fixed some cases of incorrect word pluralization.
  • #​6983 Fixed a faulty error message in the 'return' effect.
  • #​6988 Fixed input validation errors that could occur with the 'hover list' expression on newer versions.
  • #​6996 Fixed a concurrency issue with default variables.
  • #​7018 Fixed the localization of the 'horse jump strength' attribute.
  • #​7016/#​7022 Fixed additional version support issues with the 'play sound' effect.
  • #​7025 Fixed an issue with the 'vehicle' expression that could prevent Skript from loading on newer versions.

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

Notices

Help Us Test

We have an official Discord community for beta testing Skript's new features and releases.

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/issues.
If you have any bigger ideas or input for the future of Skript, you can share those too at https://github.com/SkriptLang/Skript/discussions.

v2.9.1: Patch Release 2.9.1

Compare Source

Skript 2.9.1

Skript 2.9.1 is here to resolve some of the most notable issues reported with 2.9.0. We will continue to assess stability and make fixes as necessary. As always, you can report any issues on our issue tracker.

Happy Skripting!

Changelog

Additions
  • #​6906 Added some additional spawn reasons from 1.21.
  • #​6919 Added 'pufferfish' as an alias for the 'puffer fish' entity data.
Tweaks
  • #​6854 Updated the display name of potion effect types from 'potion' to 'potion effect type'.
Bug Fixes
  • #​6897 Fixed an issue where sorting the indices of a list with children caused an error.
  • #​6909 Fixed an issue with Timespan#getAs(), which was breaking timespan arithmetic.
  • #​6910 Fixed an issue where the 'play sound' effect would cause runtime errors on some server versions.
  • #​6926 Fixed an issue where Skript could fail to start on some 1.21 server versions.
  • #​6932 Fixed an issue with the SimplifiedChinese translation that caused a startup error.
  • #​6947 Fixed an issue where the 'remaining air' expression would cause runtime errors.
  • #​6948 Fixed an issue where using some events would cause parsetime errors.
  • #​6949 Fixed an issue where reloading the aliases would not automatically regenerate missing aliases.

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

Notices

Help Us Test

We have an official Discord community for beta testing Skript's new features and releases.

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/issues.
If you have any bigger ideas or input for the future of Skript, you can share those too at https://github.com/SkriptLang/Skript/discussions.

v2.9.0: Feature Release 2.9.0

Compare Source

Skript 2.9.0

Skript 2.9.0 is here with dozens of new features, quality-of-life improvements, and bug fixes. Notably, this release includes support for Minecraft 1.21.

We especially want to thank the recent influx of new contributors, many of whom are included in this update. Every contributor means a little less work for the team and a little more progress for Skript, so please, if you want a feature in Skript, go ahead and try to make a pull request! New contributors are very welcome! You can review our contributing guide by clicking here.

Below, you can familiarize yourself with the changes. Additionally, by clicking here, you can view the list of new syntax on our documentation site. As always, report any issues to our issues page!

Per our new release model, we plan to release 2.9.1 on August 1st to address any immediate issues that are spotted with this release. Should it be necessary, an emergency patch release may come before then.

Happy Skripting!

Major Changes

[!IMPORTANT]
Skript now requires Java 11 to run. While most users are running Java 11 or newer, some may be required to update for this version. Java 11 is supported on all versions Skript supports.

  • Skript can now listen to events cancelled by other plugins! Your current scripts will behave the same as they always have, but there's now the option to listen to cancelled, uncancelled, or both kinds at once:
on break of stone:

### Normal behavior, only listens to uncancelled break events.

on uncancelled break of stone:

### Same as 'on break of stone', only uncancelled.
    
on cancelled break of stone:

### Will only listen to cancelled events. For example, 
### when Worldguard prevents a block break in a protected region.

on any break of stone:

### Will listen to both cancelled and uncancelled events.
### Finally, 'event is cancelled' will be useful!
    
on all break of stone:

### Same as 'on any break of stone'.
  • Alternatively, you can set the new listen to cancelled events by default config option to true to allow events to listen to both uncancelled and cancelled events by default:
on break of stone:
### Now listens to both cancelled and uncancelled events
### if the config option is set to true.
  • Added a config option to allow case-insensitive commands, so your accidental capslock won't mess you up as much!
### default: only /test
### insensitive: /test, /TEST, /tEsT...
command /test:
    trigger:
        broadcast "test!"
  • Adds multi-line comments. Comments are opened and closed with three hashtags ### alone on a line.
    This is code
    ###
    |
    This is a comment
    |
    ###
    This is code (again)
    • Triple-hashtags in the middle of a line (e.g. hello ### there) will not start or end a comment.
  • Support for string 'concatenation'!
    • Text can be appended to other text (e.g. set {text} to "hello" + "there") with the addition operator.
    • The concat(...) function joins any text or objects together into a single text.
  • We have exposed the load default aliases option in config.sk, which allows you to tell Skript to only load aliases in the plugins/Skript/aliases folder. You can provide as many or as few (even none, if you want!) aliases as you like. We will provide the default folder in the GitHub release for your convenience.

⚠ Breaking Changes

  • # characters in strings no longer need to be doubled! Skript can now tell that you are writing a string and will not start a comment in the middle of it. This change means all your ## will now appear as two # instead of one! This won't break hex colours, those support either one or two #'s, but it may break other text!
### before:
"<##aabbcc>I'm ##&#8203;1, baby!" -> "I'm #&#8203;1, baby!"

### after
"<##aabbcc>I'm ##&#8203;1, baby!" -> "I'm ##&#8203;1, baby!"
"<#aabbcc>I'm #&#8203;1, baby!" -> "I'm #&#8203;1, baby!"
  • Timespans will now show the weeks and years instead of stopping at days:
broadcast "%{_timespan}%"
- "378 days and 20 minutes"
+ "1 year and 1 week and 6 days and 20 minutes"
  • The names of function parameters can no longer include the following characters: (){}\",.
  • newl and nline are no longer valid syntaxes for the newline expression, but new line is now valid.
  • As mentioned above, # characters in strings no longer need to be doubled. This will mean existing doubled #s will appear as two, rather than one.
  • The option to use non-air instead of solid in the highest solid block expression has been removed.
  • Using on teleport will now trigger for non-player entities. To detect only player teleports, use on player teleport.

Changelog

Additions
  • #​4661 Added support for using weeks, months, and years in timespans. They are treated as 7 days, 30 days, and 365 days respectively. Additionally, an expression to obtain a timespan as a specific unit of time (e.g. as hours, days, etc.).
  • #​5284 Added a lowest solid block expression for obtaining the lowest solid block at a location.
  • #​5298 Added the ability to directly set entity and player pitch/yaw.
  • #​5422 Added support for enforcing the whitelist and working with offline players for it.
  • #​5691 Added documentation details for whether an event can be cancelled.
  • #​5698 Added support for obtaining the player represented by a player head block.
  • #​6105 Added an expression to determine whether a player is connected rather than online. Specifically, is online may continue to return true for players that have disconnected and then reconnected.
  • #​6131 Added the ability to play sounds from entities and specify a sound seed (instead of it being randomized each time).
  • #​6160 Added the option of using breakable with the existing unbreakable syntaxes.
  • #​6164 Added more internal tests for item-related syntaxes.
  • #​6207 Added the ability to listen to cancelled events.
  • #​6272 Added Russian translations.
  • #​6334 Added an expression for obtaining the codepoint of a character and the character reresented by a codepoint.
  • #​6339 Added support for filtering a heal event by entity types and by heal reason.
  • #​6393 Added invincible as a synonym of invulnerable in related syntaxes.
  • #​6422 Added a distinction when using the actual part of the target block expression. When actual is used, the hitboxes of blocks will be considered.
  • #​6456 Added syntax for bells and bell events.
  • #​6506 Added a condition for whether an entity is pathfinding.
  • #​6530 Expanded the teleport event to trigger when non-player entities are teleported. NOTE: This means on teleport will now trigger for entities other than players. Use on player teleport for detecting only player teleports.
  • #​6549 Added support for suppressing deprecated syntax warnings.
  • #​6558 Added multi-line comments using ### (see above).
  • #​6576 Added support for combining strings using the addition (+) symbol.
  • #​6577 Added a configuration option to allow case-insensitive Skript commands.
  • #​6596 Added an event for when endermen become enraged.
  • #​6627 Added the ability to use expressions in the command usage entry.
  • #​6639 Added a condition, effect, and expression for managing the fire resistance property of an item.
  • #​6659 Added support for logging messages with warning and error severities.
  • #​6680 Added a configuration option to allow all events by default to trigger even when the event is already cancelled.
  • #​6712 Added an effect to show/hide item tooltips and a condition to check whether an item's tooltip is visible.
  • #​6737 Adds an effect to sort a list by an arbitrary mapping expression. (ex: sort {_list-of-players::*} by {hide-and-seek::%input%::score})
  • #​6748 Added a whether <condition> expression to get the boolean (true/false) representation of a condition (example: send "Flying: %whether player is flying%").
  • #​6749 Added support for dividing timespans by timespans to get numbers. (1 minute / 15 seconds = 4)
  • #​6791 Added support for numerous 1.21 attributes.
  • #​6687 Added support for using (not creating) custom enchantments and referencing enchantments by namespace/key.
  • #​6828 Added the ability to explictly delete the message in join/death/quit events.
  • #​6831 Added the ability to prevent online lookups when using the offlineplayer function.
  • #​6835 Added the ability to also kick a player when using the ban effect.
  • #​6895 Added support for 1.21 damage causes and spawn reasons.
Bug Fixes
  • #​5422 Fixed several issues that resulted in the whitelist condition returning incorrect results.
  • #​6573 Fixes is connected pattern to support only Paper server.
  • #​6797 Fixes issues with the last damage expression.
  • #​6803 Fixes an issue where custom maximum durability did not work for items with a custom durability.
  • #​6821 Fixes block datas not being cloned upon use.
  • #​6823 Fixes inability to get the location of a double chest via the inventory.
  • #​6832 Fixes a bug where potion types could not be compared.
  • #​6836 Fixes an issue when trying to remove air from an empty slot.
  • #​6846 Fixed an issue where obtaining the slot index of the player's tool did not work.
  • #​6870 Fixed an error that could occur when attempting to set the damage of an item to a negative number.
Removals
  • #​5606 Removed the warnings in the default variable test.
  • #​6505 Removed the player name/UUID in variables warning.
  • #​6673 Removed deprecated vector arithmetic syntax in favour of regular arithmetic.
Changes
  • #​5676 Made Player UUIDs used by default in variables for new config files. That is, {variable::%player%} is the same as {variable::%player's uuid%}. If you need to continue using the name, use {variable::%player's name%}. Variables will not automatically migrate. Click to view this discussion for further information.
  • #​5979 Updated the broadcast effect to trigger message broadcast event.
  • #​6361 Strengthened function header rules to prevent the usage of invalid headers.
  • #​6389 Modified element-wise comparision to support checking whether two and lists are equal.
  • #​6550/#​6694 enhance pattern keywords to improve parsing speeds.
  • #​6583 Comment parsing has been updated to allow single # characters within strings. Existing strings will need updated to remove duplicate # characters. This change does not affect hex color tags.
  • #​6733 Updated the new line expression to remove the options of nline and newl. Additionally, new line is now a valid option.
  • #​6834 Exposed the load default aliases config option.
API Changes
  • #​6118 Added a way to create returnable sections (a section that can return a value using the return effect)
  • #​6276 Fixed JUnit before and after methods being called on cleanup regardless of override.
  • #​6291 Added a parse result structure for testing scripts.
  • #​6306 Added additional parsing methods within SkriptParser.
  • #​6307 Added an exception that occurs when attempting to register an abstract class as syntax.
  • #​6349 Added a SectionExitHandler interface which allows Sections to define behavior when the exit or return syntax is used (and the section is exited).
  • #​6531 Added a ClassInfoReference system for getting more details about the usage of a ClassInfo in a script (e.g. plurality).
  • #​6551 Added support simple structures that do not have entries.
  • #​6556 Added element look-behind support for sectionless effect sections during init.
  • #​6568 Added function contracts, allowing functions to modify their return type/plurality based on their arguments.
  • #​6718 Added support for using strings as literals (e.g. %*string% in syntax)
  • #​6798 Added 1.21 support and modified ItemType#getRandom() to be nullable as not all Materials can be represented as an ItemStack.
  • #​6806 Switched more Skript-based types over to registries where possible.

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

Notices

Help Us Test

We have an official Discord community for beta testing Skript's new features and releases.

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/issues.
If you have any bigger ideas or input for the future of Skript, you can share those too at https://github.com/SkriptLang/Skript/discussions.

v2.9.0-pre2: Pre-Release 2.9.0-pre2

Compare Source

Skript 2.9.0-pre2

Skript 2.9.0 Pre-Release 2 is here to fix some issues that came with the first pre-release. As with any other pre-release, be warned that there may be bugs! We do not recommend running this version on your production servers. This release contains many new features and bug fixes, including support for Minecraft 1.21.

We especially want to thank the recent influx of new contributors, many of whom are included in this update. Every contributor means a little less work for the team and a little more progress for Skript, so please, if you want a feature in Skript, go ahead and try to make a pull request! New contributors are very welcome! You can review our contributing guide by clicking here.

Below, you can familiarize yourself with the changes. Additionally, by clicking here, you can view the list of new syntax on our documentation site. As always, report any issues to our issues page!

Per our new release model, we plan to release 2.9.0 on July 15th. We may release additional pre-releases before then should the need arise.

Happy Skripting!

Major Changes

[!IMPORTANT]
Skript now requires Java 11 to run. While most users are running Java 11 or newer, some may be required to update for this version. Java 11 is supported on all versions Skript supports.

  • Skript can now listen to events cancelled by other plugins! Your current scripts will behave the same as they always have, but there's now the option to listen to cancelled, uncancelled, or both kinds at once:
on break of stone:

### Normal behavior, only listens to uncancelled break events.

on uncancelled break of stone:

### Same as `on break of stone`, only uncancelled.
    
on cancelled break of stone:

### Will only listen to cancelled events. For example, 
### when Worldguard prevents a block break in a protected region.

on any break of stone:

### Will listen to both cancelled and uncancelled events.
### Finally, `event is cancelled` will be useful!
    
on all break of stone:

### Same as `on any break of stone`.
  • Alternatively, you can set the new listen to cancelled events by default config option to true to allow events to listen to both uncancelled and cancelled events by default:
on break of stone:
### Now listens to both cancelled and uncancelled events
### if the config option is set to true.
  • Added a config option to allow case-insensitive commands, so your accidental capslock won't mess you up as much!
### default: only /test
### insensitive: /test, /TEST, /tEsT...
command /test:
    trigger:
        broadcast "test!"
  • Adds multi-line comments. Comments are opened and closed with three hashtags ### alone on a line.
    This is code
    ###
    |
    This is a comment
    |
    ###
    This is code (again)
    • Triple-hashtags in the middle of a line (e.g. hello ### there) will not start or end a comment.
  • Support for string 'concatenation'!
    • Text can be appended to other text (e.g. set {text} to "hello" + "there") with the addition operator.
    • The concat(...) function joins any text or objects together into a single text.
  • We have exposed the load default aliases option in config.sk, which allows you to tell Skript to only load aliases in the plugins/Skript/aliases folder. You can provide as many or as few (even none, if you want!) aliases as you like. We will provide the default folder in the GitHub release for your convenience.

⚠ Breaking Changes

  • # characters in strings no longer need to be doubled! Skript can now tell that you are writing a string and will not start a comment in the middle of it. This change means all your ## will now appear as two # instead of one! This won't break hex colours, those support either one or two #'s, but it may break other text!
### before:
"<##aabbcc>I'm ##&#8203;1, baby!" -> "I'm #&#8203;1, baby!"

### after
"<##aabbcc>I'm ##&#8203;1, baby!" -> "I'm ##&#8203;1, baby!"
"<#aabbcc>I'm #&#8203;1, baby!" -> "I'm #&#8203;1, baby!"
  • Timespans will now show the weeks and years instead of stopping at days:
broadcast "%{_timespan}%"
- "378 days and 20 minutes"
+ "1 year and 1 week and 6 days and 20 minutes"
  • The names of function parameters can no longer include the following characters: (){}\",.
  • newl and nline are no longer valid syntaxes for the newline expression, but new line is now valid.
  • As mentioned above, # characters in strings no longer need to be doubled. This will mean existing doubled #s will appear as two, rather than one.
  • The option to use non-air instead of solid in the highest solid block expression has been removed.
  • Using on teleport will now trigger for non-player entities. To detect only player teleports, use on player teleport.

Changelog

Pre-Release 2 Changes
  • #​6846 Fixed an issue where obtaining the slot index of the player's tool did not work.
  • #​6865 Fixed an issue with saving certain types of data in global variables.
  • #​6870 Fixed an error that could occur when attempting to set the damage of an item to a negative number.
  • #​6871 Fixed an issue where the text forms of enchantments displayed incorrectly.
  • #​6874 Fixed an error that would occur when attempting to use several inventory-related expressions on versions older than 1.21.
  • #​6876 Fixed an issue with plain item comparisons not working as expected.
  • #​6886 Fixed several item-related issues that could occur due to 1.21 changes.
  • #​6888 Fixed an issue where some internal item comparisons unexpectedly failed, causing issues with syntax such as the equip effect.

Click here to view the full list of commits made since 2.9.0-pre1

Additions
  • #​4661 Added support for using weeks, months, and years in timespans. They are treated as 7 days, 30 days, and 365 days respectively. Additionally, an expression to obtain a timespan as a specific unit of time (e.g. as hours, days, etc.).
  • #​5284 Added a lowest solid block expression for obtaining the lowest solid block at a location.
  • #​5691 Added documentation details for whether an event can be cancelled.
  • #​5698 Added support for obtaining the player represented by a player head block.
  • #​6105 Added an expression to determine whether a player is connected rather than online. Specifically, is online may continue to return true for players that have disconnected and then reconnected.
  • #​6164 Added more internal tests for item-related syntaxes.
  • #​6272 Added Russian translations.
  • #​6334 Added an expression for obtaining the codepoint of a character and the character reresented by a codepoint.
  • #​6422 Added a distinction when using the actual part of the target block expression. When actual is used, the hitboxes of blocks will be considered.
  • #​6530 Expanded the teleport event to trigger when non-player entities are teleported. NOTE: This means on teleport will now trigger for entities other than players. Use on player teleport for detecting only player teleports.
  • #​6549 Added support for suppressing deprecated syntax warnings.
  • #​6558 Added multi-line comments using ###.
This is code
###
|
This is a comment
|
###
This is code (again)
  • #​6576 Added support for combining strings using the addition (+) symbol.
  • #​6596 Added an event for when endermen become enraged.
  • #​6639 Added a condition, effect, and expression for managing the fire resistance property of an item.
  • #​6680 Added a configuration option to allow all events by default to trigger even when the event is already cancelled.
  • #​6712 Added an effect to show/hide item tooltips and a condition to check whether an item's tooltip is visible.
  • #​6748 Added a whether <condition> expression to get the boolean (true/false) representation of a condition (example: send "Flying: %whether player is flying%").
  • #​6791 Added support for numerous 1.21 attributes.
  • #​6687 Added support for using (not creating) custom enchantments and referencing enchantments by namespace/key.
Bug Fixes
  • #​5422 Fixes bugs with the whitelist condition.
  • #​6573 Fixes is connected pattern to support only Paper server.
  • #​6737 Adds an effect to sort a list by an arbitrary mapping expression. (ex: sort {_list-of-players::*} by {hide-and-seek::%input%::score})
  • #​6797 Fixes issues with the last damage expression.
  • #​6803 Fixes an issue where custom maximum durability did not work for items with a custom durability.
  • #​6821 Fixes block datas not being cloned upon use.
  • #​6823 Fixes inability to get the location of a double chest via the inventory.
  • #​6832 Fixes a bug where potion types could not be compared.
  • #​6836 Fixes an issue when trying to remove air from an empty slot.
Removals
  • #​5606 Removes the warnings in the default variable test.
  • #​6505 Removes Player name/UUID in variables warning.
  • #​6673 Removes old deprecated vector arithmetic syntax in favour of regular arithmetic.
Changes
  • #​4661 Adds timespan details expression & Improvements.
  • #​5676 Changes uuid default.
  • #​5298 Adds the ability to directly set entity and player pitch/yaw.
  • #​6131 Adds the ability to play sounds from entities, as well as specify a seed instead of the sound being random each time.
  • #​6160 Adds the option of 'breakable' to the existing unbreakable syntaxes.
  • #​6207 Adds ability to listen to cancelled events.
  • #​6275 Ignore cleanup lang in git blame.
  • #​6306 Adds a more flexible static parse method.
  • #​6307 Throw an exception when attempting to register an abstract class.
  • #​6339 Adds the ability to filter a heal event by entity data and by heal reason.
  • #​6349 Creates SectionExitHandler interface.
  • #​6361 Make function parameter name rules stricter.
  • #​6389 Allows element-wise comparision when checking if two "and" lists are equal.
  • #​6393 Adds "invincible" as a synonym of "invulnerable" in related syntaxes.
  • #​6456 Adds syntax for bells and bell events.
  • #​6506 Adds pathfinding condition.
  • #​6550 and #​6694 enhance pattern keywords to improve parsing speeds.
  • #​6577 Adds a config option to allow case-insensitive Skript commands.
  • #​6583 Changes comment parsing to allow single # characters within strings.
  • #​6627 Allows usage messages to contain expressions.
  • #​6659 Supports logging with warning and error severities.
  • #​6733 Cleans up the new line expression.
  • #​6749 Supports dividing timespans by timespans to get numbers. (1 second / 5 ticks = 4)
  • #​6828 Adds the ability to delete the message expression in join/death/quit events.
  • #​6831 Adds the ability to prevent lookups when using the offlineplayer function.
  • #​6834 Exposes the load default aliases config option.
  • #​6835 Adds the ability to also kick a player when using the ban effect.
API Changes
  • #​5979 The broadcast effect now calls BroadcastMessageEvent.
  • #​6118 Adds a way to create returnable triggers (a trigger that can return a value using the return effect)
  • #​6276 Fixes JUnit before and after methods being called on cleanup regardless of override.
  • #​6291 Adds parse result structure for testing scripts.
  • #​6531 Adds ClassInfoReference system.
  • #​6551 Allows simple root-level structures.
  • #​6556 Allows look-behind for headless effect sections during init.
  • #​6568 Adds function contracts, allowing functions to modify their return type/plurality based on their arguments.
  • #​6718 Added support for using strings as literals (e.g. %*string% in syntax)
  • #​6798 Adds 1.21 support and modifies ItemType#getRandom() to be nullable as not all Materials can be represented as an ItemStack.
  • #​6806 Switches more types over to registries when possible.

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

Notices

Help Us Test

We have an official Discord community for beta testing Skript's new features and releases.

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/issues.
If you have any bigger ideas or input for the future of Skript, you can share those too at https://github.com/SkriptLang/Skript/discussions.

v2.9.0-pre1: Pre-Release 2.9.0-pre1

Compare Source

Skript 2.9.0-pre1

Skript 2.9.0 Pre-Release 1 is here for everyone to begin previewing! As a pre-release, be warned that there may be bugs! We do not recommend running this version on your production servers. This release contains many new features and bug fixes, including support for Minecraft 1.21.

We especially want to thank the recent influx of new contributors, many of whom are included in this update. Every contributor means a little less work for the team and a little more progress for Skript, so please, if you want a feature in Skript, go ahead and try to make a pull request! New contributors are very welcome! You can review our contributing guide by clicking here.

Below, you can familiarize yourself with the changes. Additionally, by clicking here, you can view the list of new syntax on our documentation site. As always, report any issues to our [issues page](https://redirect.gith


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the Dependencies label May 3, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from aca945c to 515f18b Compare June 2, 2024 07:02
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.8.5 Update dependency com.github.SkriptLang:Skript to v2.8.6 Jun 2, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch 2 times, most recently from ee8f425 to dfd5a0a Compare June 15, 2024 21:48
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.8.6 Update dependency com.github.SkriptLang:Skript to v2.8.7 Jun 15, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from dfd5a0a to 29da13d Compare July 2, 2024 04:00
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.8.7 Update dependency com.github.SkriptLang:Skript to v2.9.0-pre1 Jul 2, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from 29da13d to 23da9de Compare July 12, 2024 23:06
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.9.0-pre1 Update dependency com.github.SkriptLang:Skript to v2.9.0-pre2 Jul 12, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from 23da9de to 21fc838 Compare July 16, 2024 15:00
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.9.0-pre2 Update dependency com.github.SkriptLang:Skript to v2.9.0 Jul 16, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from 21fc838 to 9861c2e Compare August 1, 2024 21:14
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.9.0 Update dependency com.github.SkriptLang:Skript to v2.9.1 Aug 1, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from 9861c2e to 902fd30 Compare September 1, 2024 21:10
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.9.1 Update dependency com.github.SkriptLang:Skript to v2.9.2 Sep 1, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from 902fd30 to 07604eb Compare October 2, 2024 01:30
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.9.2 Update dependency com.github.SkriptLang:Skript to v2.9.3 Oct 2, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from 07604eb to 1c162a4 Compare November 2, 2024 00:43
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.9.3 Update dependency com.github.SkriptLang:Skript to v2.9.4 Nov 2, 2024
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.9.4 Update dependency com.github.SkriptLang:Skript to v2.9.4 - autoclosed Nov 23, 2024
@renovate renovate bot closed this Nov 23, 2024
@renovate renovate bot deleted the renovate/com.github.skriptlang-skript-2.x branch November 23, 2024 14:10
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.9.4 - autoclosed Update dependency com.github.SkriptLang:Skript to v2.9.4 Nov 23, 2024
@renovate renovate bot reopened this Nov 23, 2024
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from e4160cc to 1c162a4 Compare November 23, 2024 15:15
@renovate renovate bot force-pushed the renovate/com.github.skriptlang-skript-2.x branch from 1c162a4 to b374957 Compare December 2, 2024 01:30
@renovate renovate bot changed the title Update dependency com.github.SkriptLang:Skript to v2.9.4 Update dependency com.github.SkriptLang:Skript to v2.9.5 Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants