Fixed
- Fixed a MySQL connection stability issue that could cause Communications link failure errors during bank profit processing
- Improved MySQL reconnection handling by validating stored connections before reuse and automatically discarding broken connections when the database link is lost
Added
- You can now save custom items and load them into MineBank GUIs, this allows the use of custom items from plugins such as ItemsAdder, Oraxen, and Nexus.
- Saved items can be used in multiple GUIs simultaneously by reusing them using their ID
- To load an item into a specific GUI slot, use the keyword `custom-item` instead of `item`, and you can (optionally) add more keywords like `name`, `lore`, `command`, etc., to customize the item
- New commands:
- - `/minebank item list` - Show all saved custom item ids
- - `/minebank item save <customItemID>` - Save the item from your hand in the `plugins/MineBank/item/<customItemID>.yml` file
- - `/minebank item get <customItemID> [amount]` - Get a saved custom item
- - `/minebank item rename <customItemID> <newCustomItemID>` - Prepare a rename
- - `/minebank item replace <customItemID>` - Prepare replacing it with the item in your hand
- - `/minebank item delete <customItemID>` - Prepare deleting a custom item
- - `/minebank item <rename|replace|delete> <confirm|cancel>` - Confirm or cancel
- New item placeholders: `
%customItemID%`, `
%newCustomItemID%`, `
%guiName%`, `
%slot%`
- New messages:
Code (Text):
bank:
item:
usage-admin:
- '%chatPlugin% &eUsage:'
- '&6/minebank item list &7- Show all saved custom item ids'
- '&6/minebank item save <customItemID> &7- Save the item in your hand'
- '&6/minebank item get <customItemID> [amount] &7- Get a saved custom item'
- '&6/minebank item rename <customItemID> <newCustomItemID> &7- Prepare a rename'
- '&6/minebank item replace <customItemID> &7- Prepare replacing it with the item in your hand'
- '&6/minebank item delete <customItemID> &7- Prepare deleting a custom item'
- '&6/minebank item <rename|replace|delete> <confirm|cancel> &7- Confirm or cancel'
list-header: '%chatPlugin% &eSaved custom items: &f%amount%'
list-entry: '&6- &e%customItemID%'
list-empty: '%chatPlugin% &cThere are no saved custom items'
invalid-id: '%chatPlugin% &cInvalid custom item id &e%customItemID%&c. Use letters, numbers, _ or -'
invalid-new-id: '%chatPlugin% &cInvalid new custom item id &e%newCustomItemID%&c. Use letters, numbers, _ or -'
already-exists: '%chatPlugin% &cCustom item id already exists: &e%customItemID%'
target-exists: '%chatPlugin% &cTarget custom item id already exists: &e%newCustomItemID%'
hand-empty: '%chatPlugin% &cYou must hold an item in your main hand'
saved: '%chatPlugin% &aSaved custom item &e%customItemID%'
not-found: '%chatPlugin% &cCustom item not found: &e%customItemID%'
load-failed: '%chatPlugin% &cCould not load custom item: &e%customItemID%'
received: '%chatPlugin% &aReceived custom item &e%customItemID% &7x%amount%'
rename-confirm-needed:
- '%chatPlugin% &7Use &a/minebank item rename confirm &7to rename &e%customItemID% &7to &e%newCustomItemID%'
- '%chatPlugin% &eUse &c/minebank item rename cancel &eto cancel'
replace-confirm-needed:
- '%chatPlugin% &7Use &a/minebank item replace confirm &7to replace &e%customItemID%'
- '%chatPlugin% &eUse &c/minebank item replace cancel &eto cancel'
delete-confirm-needed:
- '%chatPlugin% &7Use &a/minebank item delete confirm &7to delete &e%customItemID%'
- '%chatPlugin% &eUse &c/minebank item delete cancel &eto cancel'
no-pending: '%chatPlugin% &cYou have no pending custom item action'
cancelled: '%chatPlugin% &eCancelled pending custom item action'
renamed: '%chatPlugin% &aRenamed custom item &e%customItemID% &ato &e%newCustomItemID%'
pending-item-invalid: '%chatPlugin% &cThe pending replacement item is no longer valid'
replaced: '%chatPlugin% &aReplaced custom item &e%customItemID%'
deleted: '%chatPlugin% &aDeleted custom item &e%customItemID%'
confirm-expired: '%chatPlugin% &cThe pending custom item action expired'
gui:
custom-item-not-found-name: '&cCustom item not found'
custom-item-not-found-lore:
- '&7ID: &f%customItemID%'
- '&7GUI: &f%guiName%'
- '&7Slot: &f%slot%'
- Any issue, bug, or error you find in this plugin, please report it on [
Github] or via [
Spigot]. If possible, provide some steps to reproduce the issue.