Added a TP delay feature
- Concerns were raised that players can instantly pull up the shop menu to teleport to a shop when they are about to die. Hence, this new feature. (
#28)
- When player clicks on a shop on the search GUI, based on time configured in config.yml, player will be teleported.
- This is applicable only for direct to shop TP when below config is enabled:
Code (YAML):
player-shop-teleportation:
direct-shop-tp-mode:
tp-player-directly-to-shop
: true
- Added below new config option to configure the TP delay message shown when they click on a shop:
Code (YAML):
player-shop-teleportation:
direct-shop-tp-mode
:
tp-delay-in-seconds
: 5
tp-delay-message
:
"&6You will be teleported in &c{DELAY} &6seconds..."
- Set as '' if you do not want to show any message to player
- {DELAY} will be automatically replaced with value set in 'tp-delay-in-seconds'
Bug fixes
- Fixed a bug where CustomModelData set for Close button does not work (
#31)