Jason Penilla and Spottedleaf
fcb2e81590
Clear lastSection on game event listener removal
...
Fixes https://github.com/Tuinity/Moonrise/issues/87
See comments in code
2025-02-24 21:32:39 -08:00
Jason Penilla and GitHub
61312fdb59
Switch to jspecify annotations for Player ( #12042 )
...
Fixes compilation issues for plugins from recent API addition with double-annotated parameter (JetBrains annotations are type-use and parameter, so nonnull array of nonnull elements ends up with duplicates)
2025-02-08 20:57:35 +01:00
Jason Penilla
b1b88cd316
[ci skip] Update paperweight to 2.0.0-beta.14
2025-01-15 12:58:10 -07:00
Jason Penilla and GitHub
b6be7cd0ae
[ci skip] Move generated API sources to src/generated/java ( #11977 )
...
This removes a required patch set for forks.
2025-01-14 21:38:56 -07:00
Jason Penilla
d69981b611
[ci skip] Remove redundant build configuration
...
This is already the default path for the reobf mappings patch.
2025-01-13 13:51:40 -07:00
Jason Penilla
b03d39b5ce
[ci skip] Update paperweight to 2.0.0-beta.13
2025-01-10 21:01:17 -07:00
Jason Penilla
9298f593b7
Update paperweight to 2.0.0-beta.10
2024-12-30 12:35:18 -08:00
Jason Penilla
54debf494f
Update paperweight to 2.0.0-beta.8 and remove deprecated VM arg from runs
2024-12-21 13:51:50 -08:00
Jason Penilla
a18b1b7ef1
Add capabilities for old API coordinates
...
This will cause Gradle to throw a selection error when for example paper-api and spigot-api are on the classpath. Users will need to add selection rules or excludes for certain transitive deps to solve this rather than build with a broken classpath.
2024-12-20 15:07:43 -08:00
Jason Penilla
b0cef6818d
Update Gradle wrapper and paperweight
2024-12-20 12:43:17 -08:00
Jason Penilla
6e0c8776e6
Update paperweight to 2.0.0-beta.6
2024-12-20 00:37:00 -08:00
Jason Penilla
e97bf6933c
Only include build time in manifest for numbered builds
2024-12-17 19:41:47 -08:00
Jason Penilla
2612fb57dc
Update paperweight to 2.0.0-beta.5
2024-12-17 13:03:31 -08:00
Jason Penilla
e6559c5533
Update paperweight to 2.0.0-beta.4
2024-12-15 21:09:46 -07:00
Jason Penilla
43d4fa0543
Replace copied RenamerImpl file with library patch
2024-12-15 20:40:28 -07:00
Jason Penilla
3a82d04b7e
minor paper-server build fixes and tweaks
2024-12-15 16:59:39 -07:00
Jason Penilla
d98c8f9f5b
update paperweight to 2.0.0-beta.3
2024-12-15 16:40:49 -07:00
Jason Penilla and Nassim Jahnke
ff75689b08
Adjust build for config cache compat
2024-12-12 11:36:57 +01:00
Jason Penilla and Nassim Jahnke
8da8d2991f
Update dev bundle publishing
2024-12-12 11:36:57 +01:00
Jason Penilla and Nassim Jahnke
48c0f0ecd6
Fix commented sections of server build
2024-12-12 11:36:56 +01:00
Jason Penilla and Nassim Jahnke
d23702f449
Add back remapper for reobf testing and dev bundle
2024-12-12 11:36:56 +01:00
Jason Penilla and Nassim Jahnke
9368da77a9
Build updates
2024-12-12 11:36:55 +01:00
Jason Penilla and Nassim Jahnke
fe6dbf0377
Move paperweight use to -server
2024-12-12 11:36:44 +01:00
Jason Penilla
41f4119eb0
Fix broken joml metadata resulting in kotlin being included on compile/runtime classpath ( #11712 )
2024-12-05 15:10:10 -07:00
Jason Penilla
0891cf604b
Update setup-gradle action
...
setup-gradle v4 validates the wrapper
2024-12-04 10:33:50 -07:00
Jason Penilla
606d8d99f8
Fix api build script deprecation
2024-12-03 20:50:18 -07:00
Jason Penilla
39ab1fb456
Always fork jvm for compile, even when using the Gradle runtime jvm
...
Fixes spurious build failures from OOM
2024-12-03 20:42:36 -07:00
Jason Penilla
8aed12873b
Update paperweight and Gradle wrapper
2024-12-03 20:28:39 -07:00
Jason Penilla
2b69f2bf9a
Use ConcurrentUtil from Paper repo
2024-12-03 20:04:41 -07:00
Jason Penilla
572fb23805
Update Moonrise
2024-12-03 15:26:43 -07:00
Jason Penilla
5a0e5546e6
Update DataConverter
2024-12-03 15:21:36 -07:00
Jason Penilla
5e0c01db49
Set java launcher for api generate task
2024-12-03 13:34:44 -07:00
Jason Penilla
41085fc8b9
Fix and optimize getChunkCount ( #11610 )
...
It was returning ticking chunk count instead of the intended full chunk count.
We can also directly use the size of the fullChunks collection instead of iterating all chunks.
2024-11-11 12:17:36 -07:00
Jason Penilla
13a6161350
Fix Entity#isTicking and update Paper entity command ( #11590 )
...
fixes #10299
2024-11-09 07:41:26 -07:00
Jason Penilla
ec53bd41e7
Allow using old ender pearl behavior & apply ender pearl exploit patch ( #11524 )
...
When enabled, ender pearls will not load chunks and will save to the world instead of the player.
Also changes the exploit config to be default false, as it only makes sense when legacy behavior is enabled.
2024-10-30 10:09:05 -07:00
Jason Penilla
6455fa4a8b
Avoid issues with certain tasks not processing during sleep ( #11526 )
2024-10-29 12:46:33 -07:00
Jason Penilla
32675c228d
Update Gradle wrapper to 8.10.2
2024-10-28 10:17:48 -07:00
Jason Penilla
c72370d2c0
Use declaration order for state holder property iteration
...
Mostly an aesthetic change for serialization, should not have any impact on performance or correctness.
2024-10-27 18:29:34 -07:00
Jason Penilla
8f7bce1e31
Execute spark tasks during tick sleep ( #11525 )
2024-10-27 14:00:06 -07:00
Jason Penilla
ad03975163
Fix unused parameter in PlayerList#remove
2024-10-27 12:09:27 -07:00
Jason Penilla
0360c9a5fa
Remove unnecessary AT
2024-10-27 11:26:21 -07:00
Jason Penilla
cfaa6f33b8
Apply watchdoge patches
2024-10-25 18:13:48 -07:00
Jason Penilla
9adbb0e5c1
Specify mainCapabilityAttribute for paper-api
2024-10-25 12:47:24 -07:00
Jason Penilla
35d43942e2
Update paperweight to 1.7.3 ( #11445 )
2024-09-28 08:03:58 -07:00
Jason Penilla
0b7b70d405
Fix PaperServerListPingEvent#getPlayerSample not being populated or used ( #11387 )
2024-09-10 10:52:30 -07:00
Jason Penilla
5b96be4ce6
Fixup porting issue in vanillaBiomeProvider impl ( #11185 )
2024-08-31 10:59:17 -07:00
Jason Penilla
86d0c737cc
Preserve command node when re-registering modern commands through old API ( #11184 )
...
* Preserve command node when re-registering modern commands through old API
* make fix more targeted
mainly because it didn't work for vanilla commands :)
2024-07-30 11:42:55 -07:00
Jason Penilla
301caeb6d0
Allow plugin aliases to override vanilla commands ( #11186 )
...
fixes #11035
2024-07-30 11:28:05 -07:00
Jason Penilla
2b8d0d6df8
Adjust done message again ( #11118 )
...
what paper now shows as level loading time is the time displayed by vanilla or spigot in the 'done' message
the time in the done message is now the actual time since the servers Main class was initialized
2024-07-19 12:36:09 -07:00
Jason Penilla
870239b8a4
Add total time to done message ( #11109 )
...
* Add total time to done message
Previously it would only show the world load time which is misleading
* Add comments
2024-07-18 15:33:14 -07:00
Jason Penilla
5cc2489fef
Prioritize vanilla commands in function parsing ( #11011 )
...
* Prioritize vanilla commands in function parsing
* Handle command blocks as well
2024-07-04 11:49:00 -07:00
Jason Penilla
2475b329fa
Add ticket for chunk load in isChunkGenerated
2024-06-18 21:15:20 -07:00
Jason Penilla
15c0e90d6e
Execute chunk tasks while waiting for chunk load in isChunkGenerated
...
this shouldn't be needed as we are requesting EMPTY status, however there is a deeper issue that we will just work around for now
fixes #10916
2024-06-18 21:04:13 -07:00
Jason Penilla
6ae5176a52
Add missing null check to getFullChunkIfLoaded
...
fixes #10915
2024-06-18 18:27:50 -07:00
Jason Penilla
acc349cf7d
Remove getUnloadingChunkHolder check
...
It always returns null now. So it could NPE and is not useful.
2024-06-18 12:51:40 -07:00
Jason Penilla
aaf37cb47d
Fix CraftWorld#isChunkGenerated
...
The upstream implementation is returning true for non-full chunks.
This fix is not ideal since the new chunk system doesn't have a region file/chunk status patch. May want to be revisited before a non-experimental release.
2024-06-18 12:44:07 -07:00
Jason Penilla
2e8cf94dd1
Update ChunkMap#distanceManager mapping patch
2024-06-16 14:50:57 -07:00
Jason Penilla
67537d99b4
Bump tiny-remapper to 0.10.3
...
Fixes warnings when using some java 21 features
2024-06-14 21:44:18 -07:00
Jason Penilla
0c4a531524
Update Gradle Wrapper to v8.8
2024-06-14 17:53:11 -07:00
Jason Penilla
0785c29a37
update some patches
2024-06-13 20:41:44 -07:00
Jason Penilla
ef45b03497
Use CommandSourceStack in AsyncPlayerSendCommandsEvent ( #10826 )
2024-05-30 11:32:43 -07:00
Jason Penilla
d644dfaa27
Allow using PluginLoader classpath API from Bukkit plugins ( #10758 )
...
Allows using the PluginLoader API without any of the other changes imposed by switching to a paper-plugin.yml.
Used by setting paper-plugin-loader in plugin.yml to the class name of your PluginLoader.
Also allows skipping the libraries field by setting paper-skip-libraries to true (by default both libraries and jars provided by the PluginLoader are added to the classpath).
2024-05-23 13:13:02 -07:00
Jason Penilla
cb60dbc9e3
Print CommandRegisteredEvent deprecation warnings again ( #10756 )
2024-05-23 10:44:45 -07:00
Jason Penilla
e71c77f5e9
Add a better warning message than "Server performance will be affected" for CommandRegisteredEvent use ( #10754 )
2024-05-20 11:15:21 -07:00
Jason Penilla
b7e944756d
Show stacktrace when modifyItemStack fails
2024-05-13 22:58:50 -07:00
Jason Penilla
9e0c66cd6c
Correctly copy alias requirements in command upgrader
...
Fixes NPE when converting namespaced commands.
Since the brigadier command api, more aliased commands
(namespaced variants) are registered in the vanilla dispatcher,
which made this issue more apparent.
2024-05-13 15:55:15 -07:00
Jason Penilla
f9008ceb01
Fix signed book page serialization ( #10696 )
2024-05-11 15:13:18 -07:00
Jason Penilla
8a5ea7e5cf
[ci skip] Fix paperclip PR label
2024-05-11 11:13:19 -07:00
Jason Penilla
71de67180a
Add conversion for summon command
2024-05-10 12:57:07 +02:00
Jason Penilla
c0abf0cfc9
Fix ping event always receiving protocol version 0 ( #10671 )
2024-05-07 05:24:45 -07:00
Jason Penilla
8712a1c838
Update paperweight to 1.6.3 ( #10626 )
2024-04-30 10:30:14 -07:00
Jason Penilla
ec006b59bb
Fix sealed package check in BytecodeModifyingURLClassLoader ( #10627 )
2024-04-30 01:21:16 -07:00
Jason Penilla
c82479dc52
Remap plugin libraries with namespace set to spigot ( #10610 )
...
* Remap plugin libraries with namespace set to spigot
* Remap plugin libraries with namespace set to spigot
2024-04-28 14:55:10 -07:00
Jason Penilla
32ad479664
Rewrite reflection in library loader jars ( #10608 )
...
* Rewrite reflection in library loader jars
* Address todos
2024-04-28 13:14:10 -07:00
Jason Penilla
0b9087f4b8
Only scan org.bukkit.craftbukkit.inventory in MetaHandledTagsTest
...
fixes tests OOMing
2024-04-27 18:25:15 -07:00
Jason Penilla
08a94f6ebd
bump paperweight to 1.6.2 to fix spurious build failure from scanJar OOM
2024-04-27 17:38:09 -07:00
Jason Penilla
a7e0798f78
Use JetBrains runtime for run tasks
...
allows for better runtime class redefinition
closes #10459
2024-04-27 17:27:32 -07:00
Jason Penilla
a43b4297ad
Bump tiny-remapper (real)
2024-04-27 16:26:28 -07:00
Jason Penilla
572748364c
Bump tiny-remapper
2024-04-27 16:26:03 -07:00
Jason Penilla
8c2f518abe
update paperweight to 1.6.1
2024-04-27 16:07:47 -07:00
Jason Penilla
ed3f76d3a5
remove funny diff
2024-04-27 14:11:35 -07:00
Jason Penilla
bf6862b141
Move cb version definition to gradle patch
2024-04-27 14:02:33 -07:00
Jason Penilla
e20beef9c7
Move obfhelper/stack deobf diff into original patch
2024-04-27 13:53:56 -07:00
Jason Penilla
9f60650248
Bump adventure ansi serializer
2024-04-27 13:31:37 -07:00
Jason Penilla
a97258b9ee
Start cleaning up plugin remapping patches
2024-04-27 13:27:01 -07:00
Jason Penilla
43b52c8d61
Unify plugin remapping debug flags
2024-04-27 11:41:56 -07:00
Jason Penilla
f6bd443ff2
Don't tell people to build the reobf jar
2024-04-26 18:05:17 -07:00
Jason Penilla
d93d74a7d5
Remove shadow from build classpath
...
it isn't used
2024-04-26 16:48:34 -07:00
Jason Penilla
23661b25f8
paperweight 1.6.0
2024-04-26 16:19:59 -07:00
Jason Penilla
8cb49c8d67
Update paper plugin check in PluginRemapper
2024-04-26 14:31:45 -07:00
Jason Penilla
6bfa9ce2b1
Update patched spigot decompiler to fix inconsistency based on processing order
2024-04-26 11:42:17 -07:00
Jason Penilla
898fa27a8f
plugin manager updates
2024-04-25 23:17:15 -07:00
Jason Penilla
e66d823dc3
hunk system fixes
2024-04-25 22:25:02 -07:00
Jason Penilla
3606096fbb
compile fixes
2024-04-25 21:27:19 -07:00
Jason Penilla
af2e3abf87
compile fixes
2024-04-25 20:15:07 -07:00
Jason Penilla
9c8593cb14
compile fixes
2024-04-25 19:54:07 -07:00
Jason Penilla
ce02863322
generator fix
2024-04-25 19:09:21 -07:00
Jason Penilla
2432de7be3
Replace VanillaGradle use and update generated API
2024-04-25 18:40:50 -07:00
Jason Penilla
09a83f66ee
compile fixes
2024-04-25 12:16:00 -07:00
Jason Penilla
0a19a66562
Fixes for cb pkg ver
2024-04-25 11:16:53 -07:00