FinalForEach / Cosmic-Reach-Issue-Tracker

Public bug and issue tracker for the game Cosmic Reach
46 stars 0 forks source link

Multiplayer plugins #152

Open pietru2004 opened 3 weeks ago

pietru2004 commented 3 weeks ago

The multiplayer should have option to load jars as extensions for servers.

The basic logic should allow to load jars, define plugin soft and hard dependencies or plugin piority load number, apis to allow and dissallow block place, break and interact events. More advanced should additionally have ability to dissallow attacking entities or health change, sending msgs in chat, custom UI creation, running cmds as players with or without permission check. (Note. There might me more APIs worth to be available than one's I wrote about)

Soft dependency being one without witch plugin can be loaded, while hard dependency one without witch plugin couldn't be loaded.

Plugin load piority is simpler way to implement dependencies, base game has piority of 0 and gets loaded first, while mods/plugins have higher priority's. They would be loaded from zero going upward. (i+=1)

Also if somebody needed things like mixins they could be added via plugins.

FinalForEach commented 3 weeks ago

This is multiple issues combined into one, but loading jars only for server-side is a good first step. We can make issues later down the line regarding API features as they are needed after this basic functionality is added.