Simple API to lock items (in inventory or in slot) for Nukkit
Just register the item you want to lock in ``LockedItemRegistry`` when enabling your plugin
to lock item in slot ( you can't move the item in inventory but you can't drop it ).
to lock item in inventory ( you can move the item in inventory but you can't drop it )
Just register the item you want to lock in ``LockedItemRegistry`` when enabling your plugin
Java:
LockedItemRegistry.registerLockedItem(ItemID.DIAMOND, true);
Java:
LockedItemRegistry.registerLockedItem(ItemID.DIAMOND, false);