Commit Graph

1367 Commits

Author SHA1 Message Date
Christian Koop
4f262ea641
chore(deps): Update item-nbt-api to v2.12.3 2024-03-29 15:26:37 +01:00
Christian Koop
2d0b43394b
fix: Mark WildStacker dependency as provided to not shade it 2024-03-28 15:00:22 +01:00
Christian Koop
3591bfe1a4
hotfix: Copy over old normalization logic for Hologram hooks for ceze 2024-03-28 10:49:42 +01:00
Brianna O'Keefe
5379537f7c version 3.0.4 2024-03-27 13:13:01 -05:00
Brianna O'Keefe
7fccbc7f2a Updated to work with the latest version of WildStacker. 2024-03-27 13:12:30 -05:00
Christian Koop
e4b5464130
chore: Delete deprecated CompatibleSound class
This class apparently also triggers some virus scanners (false positives obviously):
https://www.virustotal.com/gui/file/d4a32b05727863aaf87da3b0e70a2760031385f68f15fdb1246738898e468926
2024-03-27 09:34:46 +01:00
Christian Koop
f0d8aaffc7
chore!: Delete deprecated NmsManager class
Acording to the GitHub search this class is still used in some projects but there was enough
time to switch over to the Nms class + it's very easy to upgrade the usages to the new Nms class
2024-03-26 22:33:40 +01:00
Christian Koop
dce7adf81f
refactor: Refactors a couple of classes by applying our code style 2024-03-26 22:32:40 +01:00
Christian Koop
8c06a740d5
fix: Remove unused boolean variable related to the old license system 2024-03-26 22:18:19 +01:00
Christian Koop
c241224b64
chore!: Delete deprecated RotationUtils class
Judging by the GitHub search none of the plugins is using it anymore
2024-03-26 22:18:13 +01:00
Christian Koop
2add5b642f
refactor(test): Refactor DatabaseTest 2024-03-26 21:24:22 +01:00
Christian Koop
2e891f736e
chore: Update .editorconfig 2024-03-26 21:24:22 +01:00
Christian Koop
519194e414
refactor: Optimize imports in all classes 2024-03-26 21:00:36 +01:00
Christian Koop
c68c419f4f
feat: Remove Craftaro as an alias for the Songoda-Command 2024-03-26 20:55:10 +01:00
Christian Koop
69c4628c63
text: Update references to Craftaro with Songoda in strings 2024-03-26 20:54:03 +01:00
Christian Koop
9b9c8fb087
feat: Remove Craftaro's plugin license check
In a way, this can be considered an performance improvement
2024-03-26 20:53:08 +01:00
Christian Koop
156aa628af
docs: Update files to reflect repository rename to 'SongodaCore' 2024-03-26 20:41:28 +01:00
Christian Koop
67ff01ae0a
docs: Removes Craftaro+-URL from FUNDING.yml 2024-03-26 20:39:35 +01:00
Christian Koop
51b720225d
chore(deps): Updates SpraxDev/Action-SpigotMC from v4 to v5 2024-03-26 20:39:34 +01:00
Brianna O'Keefe
a507cffbca Float support for StoredData. 2024-03-23 18:56:58 -05:00
Brianna OKeefe
e7340bbc89 version 3.0.3 2024-03-21 17:09:19 -05:00
Brianna OKeefe
5d9afba0b2 Monitored Threads. 2024-03-21 17:09:07 -05:00
Brianna OKeefe
60931f0ba3 Furnace gui type. 2024-03-21 17:08:56 -05:00
Brianna OKeefe
fc232fa8b1 New data system. 2024-03-21 17:08:38 -05:00
Christian Koop
8e644a4be9
build: Updates craftaro repository to songoda 2024-03-18 19:13:52 +01:00
Christian Koop
374856719c
fix: Fixes NoSuchMethodException in NMS-Spawners for new 1.20.4 builds
Affects EpicAnchors/EpicSpawners
2024-03-18 19:06:14 +01:00
Brianna O'Keefe
9f6f8fb660 version 3.0.1 2024-03-12 14:19:08 -05:00
Brianna O'Keefe
ef36c58e0b TaskScheduler 2024-03-12 14:18:45 -05:00
Christian Koop
87db6cc5b7
ci: Fix potentially problematic increment_version value 2024-02-26 12:04:49 +01:00
Christian Koop
796d71fb9c
perf: Lazily pre-populates cache for CompatibleMaterial#getFurnaceResult
The previous implementation would not cache the result for Materials without a furnace result.
So it would always check all recepies before return null.

We now just populate the whole cache instead of populating each Material<->Result combination one-by-one.
We are already iterating all the recepies anyways and EpicFurnaces should be the only plugin to use this method.
So there's actually not even a memory-consumtion trade-off right now because over time it would be
like this anyway – Just with worse performance
2024-02-25 18:01:29 +01:00
Christian Koop
0592bf4abf
Fix DependencyLoader if the ClassLoader is URLClassLoader 2024-02-21 21:54:42 +01:00
ceze88
8289dae0f8 Fix DependencyLoader if ClassLoader is a AppClassLoader 2024-02-20 11:44:59 +01:00
ceze88
b2e842c805 Revert "Remove unnecessary cast"
This reverts commit bc1b613983.
2024-02-20 11:18:58 +01:00
ceze88
bc1b613983 Remove unnecessary cast 2024-02-19 11:23:46 +01:00
Christian Koop
4b738fdf78
fix: Prevent data loss on server shutdown in DataManager
We should wait for the async pool to cleanly exit and finish all running tasks.
30 seconds is a lot but we don't want any data loss – If 30 seconds are exceeded there might just be something
fundamentally broken in the (plugin) implementation (or a huge bulk action?)
2024-02-10 19:26:44 +01:00
ceze88
c59884b87c Update Adveture releated methods
- Fix incompatible types when setting item name and lore.
- Fix replaceLegacy method replacing characters that should not be replaced.
- Add methods to convert shaded Adventure library to the non shaded form if the server is above 1.18.2
2024-02-09 12:32:33 +01:00
ceze88
cc59a825be Fix dependency loading, use a ClassLoader instance which shared among all the plugins 2024-02-07 14:46:51 +01:00
Christian Koop
66a2abda32
feat: Adds support for CMI and Sainttx's Holograms plugin in new hooks 2024-02-02 23:12:08 +01:00
Christian Koop
c9a93d3a08
fix: Relocation path for reactivestreams contains . instead of ; 2024-02-02 23:09:43 +01:00
Christian Koop
fcb613e3d6
refactor: Slight refactoring of DependencyLoader class
I am too scared on touching too much logic and breaking something as I didn't work on this class
or with that library much yet.

So I'm just refactoring it a bit not changing a lot of logic
2024-02-02 18:54:34 +01:00
Christian Koop
193af915e9
Don't catch and log exceptions in DependencyLoader
This way whatever uses the DependencyLoader actually knows if something fails and can react to it
instead of just the JVM erroring because something is unexpectedly missing in the class path
2024-02-02 18:26:26 +01:00
Christian Koop
c027ab8b4c
fix: Diag-Command throws exception because of invalid String#format
The dependencyVersion accidentally got put as an arg into Player#sendMessage instead of the String#format
2024-02-02 18:16:40 +01:00
Christian Koop
f7e46be0d9
Make DependencyLoader implementations non-static and use #getDataFolder
The data directory location for plugins might be configured to another path, so instead we the
plugin's *DataFolder* as a basis for our Core's data directory
2024-02-02 18:16:40 +01:00
Christian Koop
7441a1e9e8
chore(deps): Updates org.jetbrains:annotations to v24.1.0 2024-02-02 18:16:40 +01:00
Christian Koop
92ff9cebd5
feat: Rework how the Core-Logger works and is used
Implement own logger to prefix message with plugin name (if available) and CraftaroCore.

We prefix with both because the Core is shaded and this way it is clearly logged "which" Core is logging what.

This is also the reason why the Logger's name is now `CoreLogger.class.getCanonicalName()`
instead of CraftaroCore to uniquely identify each logger. (similar to what Bukkit's PluginLogger does).
2024-02-02 18:10:03 +01:00
Christian Koop
e0dd19e91a
style: Reformat/Auto-format DependencyLoader class
Also gets rid of some unused imports
2024-02-02 17:02:09 +01:00
ceze88
78bcb38a48 Merge branch 'development' of https://github.com/craftaro/CraftaroCore into development 2024-02-02 16:27:57 +01:00
ceze88
1ec750cacf Move dependency folder, add dependency version info 2024-02-02 16:27:52 +01:00
ceze88
eeb2724e04 Update dependencies 2024-02-02 16:04:14 +01:00
dependabot[bot]
b1178b4aec
Bump actions/cache from 3 to 4 (#91)
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-02 08:24:32 +01:00