Resource icon

LockItemAPI 1.0

Compatible API Versions
1.0
Sourcecode
https://github.com/Sherko231/LockItemAPI
Contributors
Sherko
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

Java:
LockedItemRegistry.registerLockedItem(ItemID.DIAMOND, true);
to lock item in slot ( you can't move the item in inventory but you can't drop it ).

Java:
LockedItemRegistry.registerLockedItem(ItemID.DIAMOND, false);
to lock item in inventory ( you can move the item in inventory but you can't drop it )
Author
SYRKING231
Downloads
96
Views
201
First release
Last update
Rating
0.00 star(s) 0 ratings
Top