Commit Graph

1394 Commits

Author SHA1 Message Date
BuildTools
bc4127e16a Use more reflection to directly access isIteratingOverLevels 2023-04-11 18:14:20 -04:00
BuildTools
b92c2fa403 Add @Override annotation to addOrRemoveWorldSafely 2023-04-11 18:14:20 -04:00
BuildTools
200a461b03 Use reflection to test for Paper and check if it is safe to load or unload worlds
Note: this code was designed under the assumption that PaperMC/Paper#8316 will be accepted, so it won't work unless the commit from that PR is included in the Paper build.
2023-04-11 18:14:20 -04:00
willkroboth
9ea2037910 Add method MVWorldManager#addOrRemoveWorldSafely
Addresses Multiverse/Multiverse-Core#2560

Commands that load or unload worlds trigger an IllegalStateException if they are run via a command block while the worlds are being ticked.

Using a BukkitRunnable, the operation can be delayed until the next tick at a time when the worlds are not being ticked.

MVWorldManager#addOrRemoveWorldSafely performs this logic, either running the operation now or delaying it.

8 commands were modified to use MVWorldManager#addOrRemoveWorldSafely, which I think are all the relevant commands.

Unfortunately I haven't found a way to tell when the worlds are being ticked on a Spigot server. There probably won't be any way to do this until [SPIGOT-7089](https://hub.spigotmc.org/jira/browse/SPIGOT-7089) resolves
2023-04-11 18:14:20 -04:00
Jeremy Wood
48e875d13e
Merge pull request #2908 from Multiverse/dumptruckman/fix_classifier
Remove the published jar classifier for maven publish.
2023-04-05 08:48:36 -04:00
Jeremy Wood
14b54d5269
Remove the published jar classifier for maven publish.
Fixes #2906.
2023-04-05 08:38:37 -04:00
Jeremy Wood
1c24b17c90
Merge pull request #2872 from Multiverse/new-readme-2
Update README.md
2023-03-30 08:42:10 -04:00
Ben Woo
346ac94737
Merge branch 'main' into new-readme-2 2023-03-27 10:16:41 +08:00
zax71
6d351300de chore: remove Modrinth for now
Signed-off-by: zax71 <zabax32@gmail.com>
2023-03-26 18:26:23 +01:00
Jeremy Wood
8a69d6ad43
Merge pull request #2883 from Multiverse/artifact_pr_build
build: Add artifacting of PR build
2023-03-03 11:30:37 -05:00
Ben Woo
3b44ea218d
build: Fix PR build number 2023-03-03 23:28:55 +08:00
Ben Woo
68c97f7ae6
build: Add artifacting of PR build 2023-03-03 23:21:36 +08:00
Jeremy Wood
4eca331430
Merge pull request #2877 from Multiverse/dumptruckman/separate_test_deps
Use a separate API version for running tests.
2023-03-02 00:53:24 -05:00
Jeremy Wood
b6574245b8
Remove junit exclusion from compileOnly bukkit. 2023-03-02 00:48:54 -05:00
Jeremy Wood
85d744d79f
Run tests against spigot-api 1.19.3. 2023-03-02 00:44:32 -05:00
Jeremy Wood
e536dff1a8
Use a separate bukkit dependency for tests. 2023-03-02 00:37:30 -05:00
Jeremy Wood
39287f55ef
Delete CODEOWNERS. 2023-03-01 23:36:41 -05:00
Ben Woo
d5ebde53b9
Add maven central to repositories (#2859)
Co-authored-by: Jeremy Wood <farachan@gmail.com>
2023-03-02 12:32:07 +08:00
Jeremy Wood
101ddae443
Create CODEOWNERS. 2023-02-28 23:03:50 -05:00
zax71
c3eb0ee8bd Center Logo 2023-02-26 14:00:37 +00:00
zax71
6a8c0b6255 Update README.md 2023-02-26 13:56:56 +00:00
Jeremy Wood
2b97f7310f
Use pull_request_target for auto labeler. 2023-02-25 20:39:56 -05:00
Jeremy Wood
073091525b
Label PRs automatically as prerelease. 2023-02-25 20:34:19 -05:00
Jeremy Wood
79b9c12319
Change job name for manually promoting releases. 2023-02-25 20:29:04 -05:00
Jeremy Wood
01f745b027
Skip checking PR labels. 2023-02-25 19:39:14 -05:00
Jeremy Wood
9725bdfeeb
Use ref input. 2023-02-25 14:02:01 -05:00
Jeremy Wood
cdf9767959
Use target_commitish for GITHUA_SHA. 2023-02-25 13:41:26 -05:00
Jeremy Wood
66e21da6b2
Add version to publish action as well. 2023-02-25 13:39:59 -05:00
Jeremy Wood
87b14d3944
Add publish and upload. 2023-02-25 13:34:24 -05:00
Jeremy Wood
7bbeb90320
Remove dry_run. 2023-02-25 13:34:10 -05:00
Jeremy Wood
cd895d03dc
Remove extra } in bump_version_scheme. 2023-02-25 13:32:08 -05:00
Jeremy Wood
ee2a304148
Reorder version bump types. 2023-02-25 13:31:49 -05:00
Jeremy Wood
06e9e33da4
Workflow requires version bump type. 2023-02-25 13:28:36 -05:00
Jeremy Wood
7065ffaea2
Remove checkstyle from promote workflow. 2023-02-25 13:24:24 -05:00
Jeremy Wood
1bc4e68ff9
Use promote scheme for manual workflow. 2023-02-25 13:20:40 -05:00
Jeremy Wood
4e53d13290
Add workflow for manually promoting a release. 2023-02-25 13:10:53 -05:00
Jeremy Wood
90344d36df
Merge pull request #2867 from Multiverse/no_version_bump
Use "no version bump" label instead of "no release".
2023-02-24 13:19:16 -05:00
Jeremy Wood
f36a56e854
Use "no version bump" label instead of "no release". 2023-02-24 13:17:39 -05:00
Jeremy Wood
5d4bacc80e
Merge pull request #2866 from Multiverse/test_prerelease_2
Remove space to test pre-releases
2023-02-24 12:40:57 -05:00
Jeremy Wood
d88bf6e137
Remove space to test pre-releases 2023-02-24 12:40:36 -05:00
Jeremy Wood
63f5d769d8
Merge pull request #2865 from Multiverse/prerelease-test
Add space to trigger release.
2023-02-24 11:57:39 -05:00
Jeremy Wood
9a9bfc03b9
Add space to trigger release. 2023-02-24 11:57:02 -05:00
Jeremy Wood
28112ef4d8
Merge pull request #2864 from Multiverse/simplify_release_name
Drop "Release" prefix on release names.
2023-02-24 11:46:47 -05:00
Jeremy Wood
7e5a3238b8
Drop "Release" prefix on release names. 2023-02-24 11:44:06 -05:00
Jeremy Wood
3279a6a38d
Merge pull request #2863 from Multiverse/prerelease_snapshot
Check if the tag name contains pre instead of checking PR labels.
2023-02-24 11:34:18 -05:00
Jeremy Wood
b64e48769d
Check if the tag name contains pre instead of checking PR labels. 2023-02-24 11:29:28 -05:00
Jeremy Wood
ff8002fc13
Merge pull request #2862 from Multiverse/prerelease_snapshot
Publish prerelease versions as snapshots.
2023-02-24 11:21:09 -05:00
Jeremy Wood
2af835f0c3
Publish prerelease versions as snapshots. 2023-02-24 11:15:36 -05:00
Jeremy Wood
bf25b65f09
Merge pull request #2861 from Multiverse/test_prerelease
Test prerelease workflow.
2023-02-24 10:53:54 -05:00
Jeremy Wood
52eb3d820f
Test out the prerelease action. 2023-02-24 09:58:10 -05:00