Commit graph

28 commits

Author SHA1 Message Date
UniPM 94bed94d00
Added enablePlugin() and disablePlugin() (#13)
* Exposed loaded plugins in FourKitHost with public getLoadedPlugins()

* Fixed bad reference to ServerPlugins

* Forgot that the PluginLoader was nullable, handled it

* Implemented getPlugin(name) and getPlugins() in FourKit.cs

* Implemented enablePlugin(plugin) and disablePlugin(plugin) in FourKit.cs

---------

Co-authored-by: UniPM <zoc6x8voc@mozmail.com>
2026-04-06 02:06:10 -05:00
sylvessa 18a673bd46 blockstate, more block events, command preprocess event. 2026-04-06 01:52:58 -05:00
DrPerkyLegit 21b5accc69
Feature/plugin api experimental (#12)
* added a null check to fix crash, expose internal latency value (its buggy)

* fix latency calculations

* sending packets from c#

* world save event, move shutdown def, move called location of shutdown, expose FourKit.FireEvent

* add docs

---------

Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
2026-04-05 21:21:22 -05:00
UniPM 682989c8f1
Exposing ServerPlugins (#11)
* Exposed loaded plugins in FourKitHost with public getLoadedPlugins()

* Fixed bad reference to ServerPlugins

* Forgot that the PluginLoader was nullable, handled it

* Implemented getPlugin(name) and getPlugins() in FourKit.cs

---------

Co-authored-by: UniPM <zoc6x8voc@mozmail.com>
2026-04-05 21:20:34 -05:00
DrPerkyLegit 08a88fed6e
optimizations (#10)
* optimize item data communication, options for future item flags

* lighten load on gc from inventory apis

* dont allocate for SyncPlayerFromNative

* fix blocklag
2026-04-03 17:08:59 -05:00
Jeffery Tolmie b97fe888d1
Add block.getRelative() funcs and docs (#3) 2026-04-02 17:36:53 -05:00
DrPerkyLegit ebc1d4c640
Events, minor apis, stubs for future pr (#9)
* StructureGrowEvent, expose internal dimension id

* Update StructureGrowEvent.cs

* PlayerLoginEvent, ability to change xuids, get xuids, stub for experimental player connection api

* add docs, fix up to use cmake

---------

Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
2026-04-02 17:22:07 -05:00
sylvessa 16f01fecc0 update docs to add playerpreloginevent 2026-03-29 13:05:06 -05:00
DrPerkyLegit da2aaf1247
Add PlayerPreLoginEvent (#8)
* PlayerPreLoginEvent, comments for more events

* basic plugin events

* plugin failed to load event

* add docs

---------

Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
2026-03-29 12:56:24 -05:00
sylvessa abbe007492 Merge remote-tracking branch 'smartcmd/main' into feature/plugin-api 2026-03-29 00:55:46 -05:00
sylvessa 3abffd7f54 more extensive documentation in usage of all events 2026-03-29 00:15:38 -05:00
sylvessa ebb7b2abfd fix dimension travel throu teleport 2026-03-28 23:44:00 -05:00
sylvessa 360cba9ad5 remove leftover debug prints 2026-03-28 14:48:02 -05:00
DrPerkyLegit 017f42b7cd
add enchantments (#7)
* adding enchantments

added enchantments, changed minor apis to ensure c# stays synced with the c++ server

* add missing enchant apis, oops

* add proper docs, and fix namings for stuff in itemmeta

---------

Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
2026-03-28 13:33:54 -05:00
sylvessa 921abd48a7 itemstack syncing for inevntory 2026-03-26 18:08:40 -05:00
sylvessa bbdb37d271 update docs to include gh and discord 2026-03-25 17:41:08 -05:00
sylvessa def50adfcc cleanup 2026-03-24 21:13:15 -05:00
sylvessa 98be92ed0c mfw i forget clone() 2026-03-23 23:37:32 -05:00
sylvessa d6c4500c75 add some vehicle related funcs, fix entity getting (temp) 2026-03-23 22:29:23 -05:00
sylvessa 32f058d078 particle stuff 2026-03-23 20:55:27 -05:00
sylvessa a91abed6a1 add more missing useful funcs 2026-03-23 19:10:35 -05:00
sylvessa a0be612f48 playsound, sleep ignoring 2026-03-23 17:25:46 -05:00
sylvessa a5e39efa04 add missing funcs to Player, add Velocity and Vectors 2026-03-23 08:06:21 -05:00
sylvessa 91b189e1bd Add itemmeta, fix some bugs regarding inventory syncing and missing impl (oops) 2026-03-22 20:00:36 -05:00
sylvessa 9cbc9aca28 add PlayerBedEnterEvent and PlayerBedLeaveEvent + 2 new HumanEntity funcs 2026-03-22 15:48:51 -05:00
sylvessa 54d4ad1ce0 add missing block.getData() (oops) and use string localization 2026-03-22 02:37:45 -05:00
sylvessa f945229d4f improve hostfxr loading, delete unnecessary logs 2026-03-21 16:40:07 -05:00
sylvessa f5f9aa1cf5 finish rewrite; port to cmake, loads of other changes
Theres documentation at https://sylvessa.zip/fourkit/ now. And a bunch of other changes. Check the discord server for a more comprehensive list
2026-03-21 14:01:49 -05:00