Commit Graph

273 Commits

Author SHA1 Message Date
dependabot[bot]
0eeb7aa165
Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.1 to 3.5.2
Bumps [org.apache.maven.plugins:maven-shade-plugin](https://github.com/apache/maven-shade-plugin) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.5.1...maven-shade-plugin-3.5.2)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-shade-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-01 12:04:17 +00:00
Christian Koop
e806e29a58
ci: Fix potentially problematic increment_version value 2024-02-26 12:53:54 +01:00
Christian Koop
fa20a3f013
build: Disable 'missing' warnings in javadocs plugin 2024-02-02 18:58:01 +01:00
dependabot[bot]
3b1f12a94b
Bump actions/cache from 3 to 4 (#38)
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:38:20 +01:00
Christian Koop
ca28ff77ae
Release v3.1.0 2024-01-13 21:16:41 +01:00
Christian Koop
e5b48b624f
Upgrade Craftaro Core (+dynamic library loading; +MC 1.20.4 support)
Notable changes:
* Spigot 1.20.3/3 compatibility
* dynamic library/dependency loading
  * Smaller plugin jar size
2024-01-13 21:16:41 +01:00
Christian Koop
829e97e5e2
Release v3.0.0-b3-SNAPSHOT 2024-01-13 17:01:22 +01:00
Christian Koop
95b128d73d
fix: Properly migrate the database related code to the new core's API
See previously commits for context

tl;dr
The database migration introduced a lot of changed behaviour and breaking changes.
The plugin essentially could never have worked and nobody reported the issue (or tested it).

I've completely redone the code migration, keeping changes for the plugin internals to a minimum.
Hopefully I didn't overlook anything...
2024-01-13 17:01:22 +01:00
Christian Koop
f3377b08f9
Revert "Updates to new database system"
This reverts commit f3c8778ad2.
2024-01-13 17:01:22 +01:00
Christian Koop
b4c5282990
Revert "Make database migrations compatible with latest CraftaroCore snapshot"
This reverts commit 22c99005dd.
2024-01-13 17:01:22 +01:00
Christian Koop
fadb84f2a9
Revert "fix: A lot of issues introduced after migrating to the new database API"
This reverts commit 2eec844447.
2024-01-13 17:01:22 +01:00
dependabot[bot]
ab968ea984
Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.2 to 3.6.3 (#36)
Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.6.2 to 3.6.3.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.6.2...maven-javadoc-plugin-3.6.3)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 13:52:22 +01:00
dependabot[bot]
d6d7d1f1bf
Bump actions/upload-artifact from 3 to 4 (#37)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  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-01-01 13:51:55 +01:00
dependabot[bot]
0cb90ec12a
Bump org.jetbrains:annotations from 24.0.1 to 24.1.0 (#35)
Bumps [org.jetbrains:annotations](https://github.com/JetBrains/java-annotations) from 24.0.1 to 24.1.0.
- [Release notes](https://github.com/JetBrains/java-annotations/releases)
- [Changelog](https://github.com/JetBrains/java-annotations/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JetBrains/java-annotations/compare/24.0.1...24.1.0)

---
updated-dependencies:
- dependency-name: org.jetbrains:annotations
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 18:47:14 +01:00
dependabot[bot]
0bfeb6a2f0
Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.0 to 3.6.2 (#34)
Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.6.0 to 3.6.2.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.6.0...maven-javadoc-plugin-3.6.2)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 18:39:03 +01:00
dependabot[bot]
8cbf1b789c
Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.6.0 (#33)
Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.5.0...maven-javadoc-plugin-3.6.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-02 15:43:22 +01:00
dependabot[bot]
a539306d46
Bump actions/checkout from 3 to 4 (#32)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
2023-11-01 15:45:51 +01:00
Christian Koop
2eec844447
fix: A lot of issues introduced after migrating to the new database API
The new database API introduced a lot of breaking changes and changed behaviour sadly.
When migrating this plugin to the new API these were not taken into account properly and
essentially broke the whole database/storage layer of the plugin.

* SQL statements that were valid in SQLite but are not in H2, which is now the default
* H2 jdbc driver not being shaded into the final jar
* catching exceptions, logging a message, and then continuing code execution (in the core)
* introducing race conditions
* ...

These fixes sometimes rely on the non-multi-threaded APIs provided now which will most certaintly
come with a performance hit on larger servers.
But at least it works again... tbh I do not really want to spend too much time fixing this stuff...

A potential issue that still exists in the use of `DataManager#getNextId` in `AnchorManagerImpl`.
Right now it returns a value based on the largest ID currently in the database – Completely circumventing
the whole auto_increment characteristic of the table schema...
This is another changed behaviour that gets introduced opening the possibility for conflicting IDs
*outside* of the database table itself. The ID can be used as a reference in other places
2023-10-24 01:44:00 +02:00
Christian Koop
9e850c5a49
Release v3.0.0-b2-SNAPSHOT 2023-10-23 17:57:47 +02:00
Christian Koop
22c99005dd
Make database migrations compatible with latest CraftaroCore snapshot 2023-10-23 16:49:59 +02:00
dependabot[bot]
ef6f4a8c8c
Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.0 to 3.5.1 (#31)
Bumps [org.apache.maven.plugins:maven-shade-plugin](https://github.com/apache/maven-shade-plugin) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.5.0...maven-shade-plugin-3.5.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-shade-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-09 12:34:57 +02:00
dependabot[bot]
330164ae33
Bump maven-shade-plugin from 3.4.1 to 3.5.0
Bumps [maven-shade-plugin](https://github.com/apache/maven-shade-plugin) from 3.4.1 to 3.5.0.
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.4.1...maven-shade-plugin-3.5.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-shade-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 19:59:13 +02:00
ceze88
9863b93b41 Fixes method names 2023-08-02 17:46:30 +02:00
ceze88
f3c8778ad2 Updates to new database system 2023-08-02 17:20:52 +02:00
Christian Koop
1a4a83441b
Use SpigotMC as maven repository ID 2023-06-29 11:28:45 +02:00
Christian Koop
8bcfca0292
Migrate usage of CompatibleSound to XSound in the CraftaroCore-Snapshot 2023-06-24 20:38:29 +02:00
Christian Koop
200df50bf6
GitHub Actions: Additionally upload plugin jar as build artifact 2023-06-24 16:07:23 +02:00
Christian Koop
72a5960d28
GitHub Actions: Updates build.yml based on craftaro/GH-Commons 2023-06-24 12:42:04 +02:00
Christian Koop
5e23c339f9
Configure generation of JavaDocs and Source jars for API submodule 2023-06-24 12:32:49 +02:00
Christian Koop
069b923f9f
Merge branch 'master' into development 2023-06-24 11:47:28 +02:00
Christian Koop
5622e86e0f
Changes Songoda to Craftaro in EpicAnchors command 2023-06-24 11:47:23 +02:00
Christian Koop
adcff80c47
pom.xml/plugin.yml: Updates Marketplace Link from Songoda to Craftaro 2023-06-24 11:46:54 +02:00
songoda-plugins-overview[bot]
47ef8a362d
Updates contents of README.md 2023-06-24 09:36:41 +00:00
Christian Koop
a1e5c11ccb
Updates .github/FUNDING.yml to only list Craftaro+ 2023-06-24 11:30:34 +02:00
Christian Koop
a2ed4c8656
Fix final plugin jar's name being suffixed with '-Plugin'
The suffix comes from the module itself but this is the main artifact of the project.
2023-06-24 11:28:44 +02:00
Christian Koop
3967209265
Moved all classes fromcom.songoda package to com.craftaro package 2023-06-24 11:27:25 +02:00
Christian Koop
8e5cb2405d
GitHub Actions: Temporarily removes Deployment to the maven repository
We have a new template for compiling projects and publishing them but it hasn't really been designed
with API modules in mind yet and needs some smaler adjustments before being used in all projects.
I don't want to manually update all projects if I change the template workflow file.
2023-06-24 11:05:49 +02:00
Christian Koop
f82486aecb
Sets the plugin's version to v3.0.0-SNAPSHOT 2023-06-24 11:00:53 +02:00
Christian Koop
da0e877d03
Fixes compatibility with DecentHolograms 2023-06-24 10:59:05 +02:00
Christian Koop
dea440732e
Make the plugin compatible with the latest Core-Snapshot build
I've replaced CompatibleMaterial with a library adding XMaterial.
2023-06-24 10:57:14 +02:00
Christian Koop
bbfd62c1d3
Restructures the code and add classes/interfaces to the API module
I tried creating a usable API module containing everything important without introducing
too many changes that cost time and might confuse people when migration to the new module.

We have limited time right now and need to push the 1.20 update... So no additional thoughts on
the API design (so I can regret it in the somewhat near future \o/)
2023-06-24 10:51:11 +02:00
Christian Koop
da2e999ef9
Change the project structure to allow a dedicated API module to exist 2023-06-21 15:05:48 +02:00
Christian Koop
b25843aee3
pom.xml: Mark the shaded jar as main artifact 2023-06-14 21:41:39 +02:00
Christian Koop
ae74ffa5f0
Don't try to shade org.jetbrains.annotations and exclude it afterwards 2023-06-14 21:41:09 +02:00
Christian Koop
7f0f2a1acb
Improves NMS error handling when the server version is not supported 2023-06-14 21:25:19 +02:00
Christian Koop
aef95bb831
Migrates from SongodaCore to CraftaroCore v3.0.0-SNAPSHOT 2023-06-14 21:24:50 +02:00
Christian Koop
5a8f873672
Always tick spawners in loaded chunks + Refactor of AnchorTask
When a user was inside a given chunk with a spawner, the spawner might not trigger because
of the activation range.
Anchors are supposed to ignore this limit - This change makes sure, spawners are always active.

The hack to not tick chunks with players in them is only in there because of the randomTicks done.
But this can still cause chunks to get double the randomTicks they are supposed to because
there is no good way (that I know of) to check when the server did them on a given chunk.
2023-05-18 12:24:36 +02:00
Christian Koop
47fd57a7ac
Minor code style changes (mostly use of this. for instance fields) 2023-05-18 12:08:01 +02:00
Christian Koop
cc2307f532
README.md + pom.xml: Updates some Songoda URLs to Craftaro
The image URL (and marketplace URLs that I didn't change) contain the new product ID.
The ID changed sadly but I think they will be some work done to restore the old IDs,
so I'm not updating them for now.
2023-05-18 11:55:24 +02:00
Christian Koop
70741c3f7e
GitHub Actions: Switch to new Build + SonarCloud workflows
Based on craftaro/GH-Commons

These new workflows bring a lot of nice things - For example:
* signed jars
* Auto-Deploy to Maven Repo
* Using songoda.sprax.dev/repo/ as proxy for most repos/dependencies
* ...
2023-05-18 11:55:24 +02:00