Skent

Addon Skent 3.4.0

  • 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 community!

    Now, what are you waiting for? Join the community now!

Description

Hi everyone!
After a small update before, here is a real update! Indeed, it includes many changes, including more flexible syntaxes and some adjustments.
So here is version 1.6 of Skent!

Patch note

Fixes:

- Fix package name conflict.
- Fix local variables issues in effects (thanks @Blueyescat for the fix and @HYPExMon5ter for the report!)

Improvements/Changes:

- /!\ Breaking change /!\: any path returns now the path, no longer the name of the targeted file/dir when the path is in a string, like variable name {%path%} or a simple string "%path%". This change should make more logic what's a path, and what a path returns.
- /!\ Breaking change /!\: the All files/directories syntax changed to include 4 different syntaxes. This change make shorter syntaxes, and should improve the flexibility of this expression :
- all [the] files and [all] [the] dir[ectorie]s (in|of|from) %path%
- all [the] files (in|of|from) %path%
- all [the] dir[ectorie]s (in|of|from) %path%
- all [the] sub[(-| )]files and [all] [the] sub[(-| )]dir[ectorie]s (in|of|from) %path%
- all [the] sub[(-| )]dir[ectorie]s (in|of|from) %path%
- all [the] sub[(-| )]files (in|of|from) %path%
- Watching event has been deleted. It will be rework later.
- parent expression has now path word optional, as [the] parent [path].
- owner expression has now file word optional, as [the] [file] owner. It should resolve the conflict with Region Members & Owners expression of Skript is needed.
- (file|dir) name expression has now rectory word optional as (file|dir[ectory]) name.
- [the] absolute path expression returns now a Path and no longer a String.
- toString method of ExprFileDirectory precise now if it's a directory or a file.
- Events are now improved.
This version will reduce the size of Skent only!
  • Like
Reactions: Govindas
This update mainly contains fixes.

Fixes:

  • NullPointerException with the Zip effect
  • Conflict with Vault plugin
  • File existance condition
  • Like
Reactions: Govindas
Not a big update, but this update fix a big issue.
  • Condition "if file X exists" has been fixed
  • File type is now named "Path"
  • Watching Event is experimental, I just precised it in the doc
  • Like
Reactions: Govindas
This update is to fix important bugs and improve effects.

Users:
  • The effects of creating a file or directory have been fixed
  • The conditions to check if a file is a directory or a file have been fixed
Developpers:
  • Thread methods have been removed because AsyncEffect allows you to do it directly
  • Like
Reactions: Govindas
Some skript developers asked me to put my effects as AsyncEffect, but since the skript AsyncEffect didn't work, I had put it back into Effect. I found a way to fix the skript AsyncEffect so here is the version with the AsyncEffect.

To summarize: it's just a dev update with no impact with syntaxes.
  • Like
Reactions: Govindas