Skip to content

Releases: Valorless/ValorlessUtils

v1.18.1.346 Fixes

14 Mar 01:42
aa7964f

Choose a tag to compare

Fixed: Refactored Log.Debug from VU 1.18, to prevent HEAVY lag due to reloading configs.

Fixed: ConfigValidation should now correctly add comments to their entries.

Commit: aa7964f
Pull: #13

Docs: https://valorless.github.io/ValorlessUtils

v1.18.0.329 Updates and Fixes

02 Mar 00:12
ee2d503

Choose a tag to compare

Refactored: Large refactor/expansion of config wrapper (Config): new constructors (File/Path/String), many typed getters/setters, validation improvements, comment support, and Add/Set helpers for vectors, materials, lists and ItemStacks.

Added: Annotations.

Added: SFX now accepts namespaced keys alongside the Sound enum entries.

Added: Config.GetConfigurationSection() now fallbacks to Config.GetSection() in cases of null.

Changed: Updated NBTAPI to 2.15.5 (was 2.15.3).

Changed: SFX now correctly plays sounds on newer versions.

Changed: SetStringList & GetStringList now specifically sets/gets strings, and no longer causes infinity loops with number entries like "3e77247".

Changed: Renamed Vector to VectorModel.

Changed: HavenBagsPlacementBlocker now also checks for PDC alongside NBT.

Changed: When attempting to load a config and the file is not found, an error is now shown in the console.

Fixed: Debug messages now correctly appear, after it's been enabled in a plugin's config file.
Used to require a restart.

Removed: Deprecated methods from ValorlessUtils.java.

Updated: JavaDocs to reflect the new changes.

Commit: ee2d503

v1.17.0.313 Minecraft v1.21.9-10 & NBT Update.

12 Oct 21:58
98556e7

Choose a tag to compare

Added: Server.Version.v1_21_9 to v1_21_19 (Some extra for good measure hehe)

Changed: Updated NBTAPI to 2.15.3

Commit: 98556e7
Docs: https://valorless.github.io/ValorlessUtils

v1.16.1.306 NBT Update & Hotfix.

27 Aug 22:27
58f4215

Choose a tag to compare

Changed: Updated NBTAPI to 2.15.2

Fixed: Added missing Server.Version.v1_20_2

Commits: 7be365b & 83549e3

Docs: https://valorless.github.io/ValorlessUtils

v1.16.0.306 API & PluginReloader.

20 Aug 22:23
0dc0e1e

Choose a tag to compare

Added: A new and better way to add ValorlessUtils:

<repository>
 <id>jitpack.io</id>
 <url>https://jitpack.io</url>
</repository>

<dependency>
 <groupId>com.github.Valorless</groupId>
 <artifactId>ValorlessUtils</artifactId>
 <version>1.16.0</version>
 <scope>provided</scope>
</dependency>

Added: API Javadocs: https://valorless.github.io/ValorlessUtils

Added: PluginReloader, reload desired plugins with a specific delay.
https://valorless.github.io/ValorlessUtils/valorless/valorlessutils/reloader/PluginReloader.html

Commit: ab6f0b5

v1.15.2.297 Minecraft 1.21.8

31 Jul 22:22

Choose a tag to compare

Added: Minecraft 1.21.8 support

Commit: 9c995a4

v1.15.1.295 Tags/NBT Updates & Fixes.

27 Jul 02:15

Choose a tag to compare

Added: Tags Set/Get List<> versions of String, Integer, Double, and Float.

Added: Tags.Remove(JavaPlugin, ItemStack, String).

Added: NBT.Remove(ItemStack, String).

Fixed: Some issues with Utils.RandomRange().

Commit: f200b4f

v1.15.0.289 Minecraft 1.21.6/7 & Updates.

01 Jul 19:33

Choose a tag to compare

Added: Support for Minecraft 1.21.6/1.21.7

Added: tags.Tags now also has Get/Set/Has for PersistentDataContainer alongside ItemStack, the way the original ValorlessUtils.Tags has.

Added: Boolean - Server.VersionHigherOrEqualTo(Version version).
Returns true is the server's version is the higher or the same as the value given.

Added: Boolean - Server.VersionEqualTo(Version version).
Returns true is the server's version is the same as the value given.

Changed: config.GetFloat() has been marked as deprecated, and replaced with config.GetDouble().
This was a mixup I made early on, before I knew the difference between the two.

Changed: Config backups are now saved as .txt instead of .yml, for plugins where all .yml files in a folder is loaded.

Commit: 23e72a8

v1.14.0.286 Minecraft 1.21.5

23 Apr 01:11

Choose a tag to compare

Updated internal library NBTAPI, should support 1.21.5 now.

Commit: 34cbe0a

v1.13.0.285 Translator Upgrade

06 Apr 22:37

Choose a tag to compare

The Translator function no longer contains language files needed to translate,
but will instead download the desired language from github, for the specific version of the server.
This not only lowers the overall ValorlessUtils file size, but also provides language files
specifically for the server's version, instead of universal file.

Once the desired language has been downloaded, it's stored in ValorlessUtils' plugin data folder for later use.
In case the download fails, a fallback en_us language file is used.

Other Stuff

Added: ValorlessUtils.GetServerVersionString(), returns the server's version as a string. (e.g. "1_21_4")

Fixed: ValorlessUtils.GetServerVersion() now correctly returns the server version.

Commit: c5f0f5a