Allay icon indicating copy to clipboard operation
Allay copied to clipboard

feat: add a way to freeze registry

Open smartcmd opened this issue 9 months ago • 1 comments

Currently, all the registries in Allay are always editable. For example, item registry can still be edited by plugin unexpectedly after players joined, which will led to an unknown behavior. According to this, we should have a way to lock these registry to prevent unexpected modifications after all things are registered.

smartcmd avatar Mar 07 '25 13:03 smartcmd

I suggest implementing registration via an event — there will be some kind of ItemRegistryEvent in which items can be registered, and outside of it, an exception should be thrown

IWareQ avatar Jun 17 '25 04:06 IWareQ