Commit Graph

70 Commits

Author SHA1 Message Date
Bjorn Beishline
f7ef6e3378 Update to latest toolchain 2026-03-08 15:02:52 -07:00
Bjorn Beishline
00b9120503 Add in base for createBlockData implementation 2026-03-04 16:22:19 -07:00
Purdze
93a2d5fb4e Remove unused pumpkin-world dependency 2026-03-02 23:41:48 +00:00
Purdze
fff0592875 Fix clippy and fmt issues
- Use Option::map instead of manual if-let-some in config callback
- Remove unused itemstack re-export
- Apply cargo fmt
2026-03-02 23:31:47 +00:00
Purdze
640d6268ab Implement legacy material conversion and fix command sender
- Add three-tier legacy material lookup in PatchBukkitLegacy: data-value
  map, rename map, and direct name match covering all 462 LEGACY_*
  materials
- Fix null player sender by creating PatchBukkitPlayer on-the-fly with
  op when Java-side getPlayer returns null
- Add DynamicTestProvider interface and LEGACY_MATERIALS test category
  that validates every legacy material converts to non-AIR
- Fix protobuf codegen naming collision with java_outer_classname
- Clean up command_manager: extract get_or_init_command_map helper,
  remove debug logging and dead code
2026-03-02 22:42:09 +00:00
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
4cb5d22766 Remove build_and_test from github action 2026-02-11 20:07:38 -07:00
Bjorn Beishline
48e14316bd Removed unused dependency 2026-02-11 19:55:04 -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
011fd0f5f0 Hopefully fix github action build error 2026-02-03 23:14:28 -07:00
Bjorn Beishline
2092ca86e6 Hopefully fix github action build error 2026-02-03 23:11:27 -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
6ef6a73e9f Fix windows build issues 2026-02-02 07:57:22 -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