By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.
OK, Don't show this again
Player's item lock
You can access to LockedItem by using LockedItem::getInstance()
Example:
LockedItem::getInstance()->setLocked($item);
Command | Description |
---|---|
/setlock | Lock the item in hand |
/unlock | Unlock the item in hand |
lockeditem.setlock
for command /setlocklockeditem.unlock
for command /unlock---
# Config Main of LockedItem
perm-message: You are not allowed to use this command!
lock-message: Your item has been locked successfully!
no-lock-message: Your item was previously locked!
unlock-message: Your item has been successfully unlocked!
no-unlock-message: Your item has not been locked before!
item-hand-message: You need to hold the item in your hand to unlock!
#Lore of item when locked
item-lore: LOCKED
# The item locked will not be able to interact with the itemframe if this is true
no-touch: true
# The when the item is locked, it cannot be put in the chest if this is true
no-change-inventory: true
...
Plugin Version | Pocketmine API | PHP Version | Plugin Status |
---|---|---|---|
6.0.1 | 5.x.x | 8.0 | Completed |
You can leave one review per plugin release, and delete or update your review at any time