Skip to content

Releases: SkriptLang/Skript

Bug fix release

02 Jun 18:28
Compare
Choose a tag to compare
Bug fix release Pre-release
Pre-release

First, dev16b with inventory click events is coming soon. The code is there, but I didn't manage to fix all bugs - please don't use it yet. Anyway, I think there are few other much needed updates...

  • Fixed a bug which caused removing items from players' inventories mess with off hand
  • Fixed right clicking horse sometimes bypassing event handling
  • Fixed Skript's built-in Java functions not working at all since dev15
  • Added EffectLib as effect backend (optional, automatically used if available)
  • Added upper/lower case string expression

Expressions:
Upper/lower Case Text: %string% in (0¦upper|1¦lower) case", "capitalized %string%

Skript Structure parser

13 May 17:48
Compare
Choose a tag to compare
Pre-release
  • Reworked parser and function validation system to properly support calling function before defining it
  • Function calls are now always allowed before definitions of the functions - configuration option doesn't do anything or appear in new Skript installations
  • Commands defined by scripts are now registered to Skript's namespace, not Bukkit's (you can use /skript:cmd as /cmd), thanks to @RoyCurtis
  • Spigot 1.9.4 is now officially supported, and updating to it is recommended
  • Fixed a bug with click events (clicking a sign)

Note that function parser is kinda experimental at this point. It might need some more bug fixes...

And more bug fixes...

08 May 18:41
Compare
Choose a tag to compare
And more bug fixes... Pre-release
Pre-release
  • Fixed a bug with functions (post validation, again)
  • Fixed a bug with WorldGuard support (issue #74)

Bug fixes

06 May 18:23
Compare
Choose a tag to compare
Bug fixes Pre-release
Pre-release
  • Fixed a memory leak with timings (note: there might be few more, needs testing)
  • Fixed some bugs with biomes (issue #73)
  • Biome "void" is now again known as "void" (not "void biome"); please report if you get errors with damage causes

Skript Timings!

04 May 18:49
Compare
Choose a tag to compare
Skript Timings! Pre-release
Pre-release
  • Fixed functions not always working as expected with "allow function calls before definations" config option
  • Added (experimental) Skript timings

Timings?
You can now log how much time your scripts take when using events. Use /sk timings start to start the timing, then /sk timing stop to stop it. You'll get timings-X.log file in Skript's directory root.

As said, it might not work in all cases. For example, it takes some RAM while in use and probably crashes the server if you don't have enough. Also, parsing big enough timing report will take some time, which might freeze your server...

Please report any bugs you find :) This was not easy feature to create, but I think it will be worth it. Now when this is over, I'll probably try to fix some reported bugs...

Edit: Memory leak found. Be careful with timings...

Some fixes for clicks

25 Apr 14:22
Compare
Choose a tag to compare
Some fixes for clicks Pre-release
Pre-release
  • Fixed a bug with eye of ender click handling
  • Fixed a bug that made click events not work with food when eating was not possible (not hungry)

Just a quick fix, nothing critical here.

You want to ignore those errors and just make it run?

24 Apr 11:49
Compare
Choose a tag to compare
  • Added config option "addon safety checks", which defaults to false and is not present unless you manually add it; enables additional checks here and there to remove null classes...

Warning: If this option fixes your problems, something is wrong with your addons and/or Skript. Please open ticket here and on addons' issue tracker once you know which addon was causing problems.

Unbreakable tools? Yes!

23 Apr 18:14
Compare
Choose a tag to compare
Pre-release
  • Fixed looping players with delay (wait X seconds/ticks)
  • Added support for mount events (for testing!)
  • Added unbreakable item expression

Events:
Mount: mount[ing]
Dismount: dismount[ing]
Expression vehicle should work with both of them.

Expressions:
Unbreakable items: unbreakable %itemtypes%

As always, please report any bugs you notice there :)

Functions enhanced

18 Apr 14:20
Compare
Choose a tag to compare
Functions enhanced Pre-release
Pre-release
  • Added optional function post-checking (see below for more information)
  • Added support for some new inventory events (which not all do work)
  • Skript's version number now follows Github tagging (now: 2.2-dev13)
  • Fixed potion item expression not working when running Skript in debug mode
  • Probably fixed #48 (portal region enter throwing exceptions)

Events:
Inventory Click: [player] inventory(-| )click[ing] [[at] %itemtypes%] (VERY BUGGY)
Prepare Craft Item: player craft[ing] [[of] %itemtypes%] (this seems to be not very reliable either)

I have plans to fix those events soon, especially if someone really needs them. Please open an issue if you do :)

Function post-checking
This enables you to write function calls before you define the functions. The feature is experimental, but should work just fine. You can toggle it on in your config file (which should have been updated automatically to have the option).

When enabled, functions' existence is not checked when a function call is met - instead, checking is done after all scripts are loaded. Possible caveats:

  • There are many different ways to (re)load scripts, did I remember to add checks for all?
  • Post-validation might slow down loading scripts
  • Error messages in case of missing functions come after all other messages...
  • Missing functions CAN spam your console with exceptions if you don't immediately fix those

Particle support v3

11 Apr 16:06
Compare
Choose a tag to compare
Particle support v3 Pre-release
Pre-release
  • Fixed and improved particle support drastically
  • Hotfixed regions, again
  • Made dropping items without velocity (using normal expression with without velocity) possible

Note: colored dust and both potion swirl particles are buggy

For particles names, see language file. It is also possible to set offsets (dX, dY, dZ), and speed of particle. Following is added to end of every (non buggy, see above) expression:
[with [offset of %number%, %number%(,| and) %number%][[and ]speed %number%]]
Example:
play 100 (dust of oak wood with speed 0) above clicked block

Effects:
Visual effect (updated):
(play|show) %visualeffects% (on|%directions%) %entities/locations% [(to %-players%|in (radius|range) of %number%)]
OR
(play|show) %number% %visualeffects% (on|%directions%) %entities/locations% [(to %-players%|in (radius|range) of %number%)] (if you want to specify amount of particles)

Update: Released dev12c to fix broken entity effects (same download link)

Update 2: Playing multiple effects no longer accepts entity as parameter