Reload command: allow you to reload config without reload/restart server
Check version command: allow you to check your plugin's version you are using.
Help command.
Player Log:
Per player's log with UUID.
Whenever player(s) dismant item(s) success , plugin will write to player's log.
Will add time-format to config in the next update.
Sound:
Per features will have it's sound.
Switch to turn on/off sound.
Volume/pitch config (you can set the loudness of the sound.
Open/Close UI.
Dismant item Success/Fail.
Input not valid (null item).
Output full (out of slot).
Config:
Remove:
inventory.yml
message.yml
Now all config will be contained in config.yml.
Code (YAML):
# ========================================================== # ui: # title: Title of the UI. # background: Background material. # type: Material of button. # name: Name of button. # lore: Describe feature of this button. # ========================================================== ui:
title: '&9&lDismantle Workbench'
background: 'CYAN_STAINED_GLASS_PANE'
dismantle-button:
type: 'SUNFLOWER'
name: '&a&lDismantle'
lore: - '&9&oClick to dismantle item to crafting material'
- '&f&o> &a&oRight click &f&oto dismantle &c&o&nall'
- '&f&o> &a&oLeft click &f&oto dismantle &c&o&
none'
# Why i have to do this switch? # because the recipe of 1x Stick = 2x Bamboo # so i think player can farm bamboo with this feature. # - dismantle-to-bamboo: true (default) dismantle-to-bamboo: true
# Durability percent allow that item # can be dismantled to crafting material. # If item durability is below <percent> , it can't be dismantled. # - durability-percent-allow: 50 (50% is default). durability-percent: 50
# Play sound when interact with Dismantle Workbench. # Set true will play sound , false will mute # - enable: true (default is true) # - open: when open. # - close: when close. # - success: when dismant success an item. # - fail: when item dismant fail. # - not-valid: when you've not put item to dismant. # - full: when the output slot is full of crafting material. # - type: sound type which will be played ingame. # If you don't set value , return default value. # Sound library: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html # - volume: is the loudness of the sound. (default is 1) # - pitch: is amplification of the sound. (default is 1) sound:
enable: true
open: # Sound type default is BLOCK_STONE_BUTTON_CLICK_ON type: 'BLOCK_STONE_BUTTON_CLICK_ON'
volume: 1
pitch: 1
close: # Sound type default is BLOCK_STONE_BUTTON_CLICK_OFF type: 'BLOCK_STONE_BUTTON_CLICK_OFF'
volume: 1
pitch: 1
success: # Sound type default is ENTITY_EXPERIENCE_ORB_PICKUP type: 'ENTITY_EXPERIENCE_ORB_PICKUP'
volume: 1
pitch: 1
fail: # Sound type default is BLOCK_BELL_USE type: 'BLOCK_BELL_USE'
volume: 1
pitch: 1
not-valid: # Sound type default is BLOCK_ANVIL_FALL type: 'BLOCK_ANVIL_FALL'
volume: 1
pitch: 1
full: # Sound type default is BLOCK_BAMBOO_BREAK type: 'BLOCK_BAMBOO_BREAK'
volume: 1
pitch: 1
#Message display ingame #Placeholders: # %percent%: percent that allow item can be dismantled. # %dbpercent%: player item's durability percent. # %dbamount%: player item's durability amount. # %maxdb%: max durability of this item. message:
prefix: "&6[&b&lItemDismantle&6] " input-not-valid: "&cPlease put item need to dismant" no-permissions: "&cYou don't have permissions to access &9&lDismantle WorkBench." no-perm-command: "&cYou don't have permissions to use that command." reload: "&aReloaded all configuration!" durability-low: -
"&cYou can't dismant item that durability is below &e%percent%%" - "&cYour item durability percent: &e%dbpercent%/100% |
(%dbamount%/%maxdb%)" version-check: "&aYou're using version: &c%version%" #Message that will write log of player's activity. log: "Dismant success %item% x%amount%"
Code (Text):
%percent%: percent that allow item can be dismantled.
%dbpercent%: player item's durability percent.
%dbamount%: player item's durability amount.
%maxdb%: max durability of this item.
FIXED
Error with UI interaction.
Some users has reported to me about this bug , so problem have been solved
The default value has been added.
If your config value is null or the format isn't valid , default value will replace it.