Commit Graph

60 Commits

Author SHA1 Message Date
Bjorn Beishline
018ef2a8fa Fix logging, add config, fix UnsafeValues 2026-02-17 10:31:56 -07:00
Bjorn Beishline
2d7fe45c98 Use tracing instead 2026-02-12 23:27:48 -07:00
Purdze
bab25c6a50 fix cargo fmt formatting 2026-02-12 12:13:42 -07:00
Purdze
338717143a add conformance test plugin and fix command registration panic
- new patchbukkit-test-plugin gradle subproject with 69 tests across
  10 categories (server, plugin_manager, command_system, event_system,
  permissions, registry, entity, console_sender, unsafe_values, stubs)
- test framework with reflection-based discovery, ansi-colored output,
  and ci-parseable [PBTEST_SUMMARY] line
- /pbtest [category|all] command for manual test execution
- fix .unwrap() panic in command_manager.rs register_permission that
  crashed the jvm worker thread when plugins declared commands
2026-02-12 12:13:42 -07:00
Bjorn Beishline
5a4b495a25 use tracing for logging instead
This will temporarily break logging as Pumpkin logging for plugins is broken currently
2026-02-12 12:04:33 -07:00
Bjorn Beishline
e45e3ec362 Move jars download to client instead of build 2026-02-12 01:43:21 -07:00
Bjorn Beishline
3f4db9f5b4 Let events modify 2026-02-04 02:21:27 -07:00
Bjorn Beishline
08602f0010 Fix all clippy lints 2026-02-04 00:07:45 -07:00
Bjorn Beishline
3b007a214e Fix compiler errors 2026-02-03 23:06:56 -07:00
Bjorn Beishline
8e4b13d42b Remove last of NativePatchBukkit commands 2026-02-03 22:55:30 -07:00
Bjorn Beishline
4829d59c1e Refactor get location 2026-02-03 22:55:15 -07:00
Bjorn Beishline
605858e14f Refactor call event 2026-02-03 22:55:14 -07:00
Bjorn Beishline
dfbdab7e95 Update send message 2026-02-03 22:55:02 -07:00
Bjorn Beishline
d382421557 Re-implement register event ffm 2026-02-03 22:55:02 -07:00
Bjorn Beishline
5e6de69913 Get protobuf message passing working 2026-02-03 22:54:41 -07:00
Bjorn Beishline
a31da8c568 Setup rust passing of ffm 2026-02-03 22:54:41 -07:00
Bjorn Beishline
373a553722 Add the basis of protobufs 2026-02-03 22:54:21 -07:00
Alexander Medvedev
e8d53a458e enforce clippy lints and rustfmt 2026-02-03 21:00:51 +01:00
Purdze
2dc589830e implement event cancelling for java plugins
propagate cancellation state from java bukkit events back to pumpkin
events. when a java plugin calls event.setCancelled(true), the
cancellation is now properly applied to the underlying pumpkin event.

- add Cancellable trait bound to PatchBukkitEventHandler
- call event.set_cancelled(true) when java event is cancelled
2026-02-03 13:16:02 +00:00
Bjorn Beishline
eb44131801 Fix cancel checking causing errors 2026-02-02 16:53:54 -07:00
Bjorn Beishline
9cc31658a1 feat: refactor events 2026-02-02 16:44:57 -07:00
yunuservices
34af0e46a6 feat: commandSender implementation 2026-02-02 22:43:45 +03:00
Bjorn Beishline
288c45537c Get suggestions working 2026-02-02 04:35:02 -07:00
Bjorn Beishline
196acf8865 Refactor command code 2026-02-02 03:25:17 -07:00
Bjorn Beishline
5a79e7875c Fix windows path resolution 2026-02-02 08:08:24 -07:00
Bjorn Beishline
81e5eaa6ad Make patchbukkit-plugins be auto created 2026-02-01 23:39:13 -07:00
Bjorn Beishline
37b1ebeae5 Fix abilities not updating properly 2026-02-01 11:46:18 -07:00
Bjorn Beishline
4b5f07b37c Get sound working 2026-02-01 11:28:19 -07:00
Bjorn Beishline
185822a5fe Add entity play sound 2026-02-01 11:04:32 -07:00
Bjorn Beishline
18442c2298 Add in the base registry 2026-02-01 01:23:47 -07:00
Bjorn Beishline
03e762cd45 Add get world and free string 2026-01-31 13:06:04 -07:00
Bjorn Beishline
4a906ae3dc Use entity instead of player 2026-01-31 12:50:51 -07:00
Alexander Medvedev
26b9727166 chore: remove futures
using futures::executor::block_on(async { was a quick and dirty fix which is not needed anymore, also improved some other things
2026-01-31 16:22:16 +01:00
Bjorn Beishline
a8b14af252 Add get location 2026-01-31 06:07:57 -07:00
Bjorn Beishline
609f894c56 Clean up codebase 2026-01-31 05:39:25 -07:00
Bjorn Beishline
b4521e1c8e Implement get and set abilities 2026-01-31 05:31:22 -07:00
Bjorn Beishline
20c823eb76 Change how callbacks work 2026-01-31 04:47:13 -07:00
Alexander Medvedev
deb1710c3e try to add tab completion
still does not work, but also includes some fixes
2026-01-31 00:34:39 +01:00
Bjorn Beishline
ce8c8855f1 Add in op stuff 2026-01-30 15:21:29 -07:00
Alexander Medvedev
23337fb600 fix: message formatting 2026-01-30 23:19:46 +01:00
Bjorn Beishline
4816935568 Get sendMessage working 2026-01-30 14:26:39 -07:00
Alexander Medvedev
0bf2697c25 feat: Commands 2026-01-30 18:28:07 +01:00
Alexander Medvedev
0158a8e764 Update to 1.21.11 2026-01-29 17:02:21 +01:00
Bjorn Beishline
9ee012e2fa Add in java event manager 2026-01-28 04:33:27 -07:00
Bjorn Beishline
93dc1adea9 Fix exception for callback 2026-01-28 02:17:14 -07:00
Bjorn Beishline
912fcbfc36 Fix bad use of blocking_send 2026-01-28 02:04:23 -07:00
Bjorn Beishline
dbe8321db8 Change how jvm works 2026-01-28 01:53:29 -07:00
Bjorn Beishline
67b9f06381 Refactor to use dedicated thread for jvm 2026-01-28 01:46:23 -07:00
Bjorn Beishline
21fd37457c WIP 2026-01-27 23:47:38 -07:00
Bjorn Beishline
9422749511 Set plugin instances 2026-01-27 22:59:14 -07:00