Skip to content

Added a few random things

Compare
Choose a tag to compare
@Sashie Sashie released this 16 Jun 00:33
· 15 commits to master since this release
  • Backwards compatibility

    • Some time during 1.13.2 spigot decided to update snakeyaml
    • In the previous update I made skript-yaml work with the newer version but didn't make things backwards compatible
    • Now everything works with versions 1.13.2 and lower
  • Updated load effect

    • [re]load [(1¦non[(-| )]relative)] [y[a]ml] %string% as %string% (only allows a single input)
    • [re]load [(1¦non[(-| )]relative)] [y[a]ml] %strings% [using [the] [file] path[s] as [the] id[s]]
      • Using [using [the] [file] path[s] as [the] id[s]] replaces having to manually enter the file path as an id
      • This second syntax allows for multiple inputs
  • Updated unload effect to unload [y[a]ml] [(1¦director(y|ies))] %strings% (allows for multiple inputs)

    • The [(1¦director(y|ies))] option requires one or more directories as an input and unloads any loaded yaml files from them
  • Updated save effect to save [y[a]ml] %strings% [with an indentation of %-number%] [(1¦[and] with(out| no) extra lines between nodes)]

    • Now allows for multiple inputs
    • You can also set the amount of indentation
  • Updated delete yaml effect to delete [y[a]ml] %strings%

    • Now allows for multiple inputs
  • Moved all delete yaml directory syntax to a single class(internal stuff)

    • Updated delete (all|any) [y[a]ml] from [(1¦non[(-| )]relative)] director(y|ies) %strings%
    • Moved delete (all|any) loaded [y[a]ml] from [(1¦non[(-| )]relative)] director(y|ies) %strings%
    • Moved delete (all|any) loaded [y[a]ml] from [(1¦non[(-| )]relative)] director(y|ies) %strings% using [the] filename as [the] id
  • Updated all loaded yaml expression to [(the|all [(of the|the)])] [currently] loaded y[a]ml [files] [from (director(y|ies) %-strings%|all directories)]

    • Using the from director(y|ies) %-strings% option outputs all loaded yaml from one or more directories
  • Added all loaded yaml directories expression [(the|all [(of the|the)])] [currently] loaded y[a]ml directories

  • Added yaml file exists condition [(1¦non[(-| )]relative)] y[a]ml file %string% exists and [(1¦non[(-| )]relative)] y[a]ml file %string% does(n't| not) exist

  • Fixed issue in the yaml expression where node keys were not adding and removing properly.

  • Fixed issue with using AsyncEffect during on disable: event

  • Added some loop stuff for the yaml expression

  • Added ability for other (java)addon developers to register custom tags(!location, !vector, etc..) with skript-yaml

    • Warns if the tag or class you are trying to register is already registered
    • Also warns if the represented or constructed class doesn't match the class you are registering
    • This is only useful if for some reason you want to add the ability to save something to yaml that doesnt already serialize