How to update ( To use your old message.yml ): 1. Stop the server 2. Update the plugin 3. Start the server 4. Drag your message.yml to the lang folder in the plugin folder 5. Add the following to the config.yml:
Code (Text):
language: message
6. Reload the plugin: /cview reload
Added multi language system. ( by @abb3v! ) Now supports 4 languages:
Code (Text):
# Language to be used, if you do not know what you are doing, leave this as en_us.
#
# To display English: en_us
# https://github.com/Hinogo2210/ContainerView/blob/main/src/main/resources/lang/en_us.yml
# Para mostrar español: es_es
# https://github.com/Hinogo2210/ContainerView/blob/main/src/main/resources/lang/es_es.yml
# 顯示繁體中文(香港): zh_hk
# https://github.com/Hinogo2210/ContainerView/blob/main/src/main/resources/lang/zh_hk.yml
# 显示简体中文(中国大陆): zh_cn
# https://github.com/Hinogo2210/ContainerView/blob/main/src/main/resources/lang/zh_cn.yml
#
# PM me on discord to add your language: mromango
Config Files Previous config.yml will not going to work:
The Settings and Messages sections are now stored in two separate files. Download these two files and apply your previous settings: config.yml & message.yml
Per-Player Viewing
Now a player could not see another player's viewing glowing outline.
Double Chest Support
Now doubled chest will be displayed separately and will not count towards the color limits of other containers. Maximum displaying up to 32 Containers! (16 for single-type containers + 16 for double chests):
Permissions and Commands
Now only has two permissions:
containerview.use - Includes all the user commands (/cview view,end,help)
containerview.reload - /cview reload
Added help page (/cview help):
Break Detection
The plugin will remove the glowing entity and automatically end the view session if all the containers are broken:
Click To End
Now you can end the view session with mouse:
GUI Close Option
Now you can choose if the view GUI will automatically close when time is up or not.
# Play sound when view GUI opens.
# You can find all the sounds here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
sound-effect:
# Play or not, default enabled.
enable: true
open-sound: BLOCK_BARREL_OPEN
close-sound: BLOCK_BARREL_CLOSE
New command for disable view mode immediately: - /cview end permission: containerview.use.end
Custom Permission - You can now customize permission for this plugin! (settings.permissions)
Message Customization: 1. Added no permission message. (lang.no-permission) 2. Added unknown usage message. (lang.unknown-usage) 3. Added /cview end related message. (lang.view-not-enabled)
Updated portion of the config:
English:
Code (YAML):
settings: # Custom permission for the plugin. permissions:
use: containerview.use
end: containerview.use.end
admin: containerview.admin
lang:
view-not-enabled: "&cView mode is not enabled, use &e/cview&c to view." # Message when player got insufficient permission. no-permission: "&cInsufficient permission." # Unknown command usage. unknown-usage: "&cUnknown usage, type &c/help &cfor help."
You can now choose to play sound when the container view GUI opens.
Updated portion of the config:
English:
Code (YAML):
settings: # Play sound when view GUI opens. # You can find all the sounds here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html sound-effect: # Play or not, default enabled. enable: true
sound: BLOCK_BARREL_OPEN