This update is for Spigot / Minecraft 1.17+, and is compiled using Spigot API 1.17.1 and Java 16.
An 'auto_display' option has been added to the config.
Code (YAML):
Display:
auto_display
: true
By enabling 'auto_display' the block information will automatically update just by looking at a different block without the need for commands or clicking. As plugins run server side, having 'auto-display' enabled may impact performance depending on the server hardware, software and the number of players online.
The 'auto_display' option is disabled by default, so when the server starts the 'player move' listener is not registered. To enable the 'auto-display' option the server will need to be restarted so that the listener is correctly registered.
The config also includes a list of blocks that should be ignored when targeted by the player. These blocks will not display anything, so the list could include common blocks like GRASS_BLOCK and NETHERRACK as well as AIR and WATER.
Code (YAML):
IgnoreBlocks
:
- AIR
- CAVE_AIR
- WATER
- GRASS_BLOCK
Support for the plugin Nova (by xenondevs) has been added.
Change Log
==========
- add auto display feature
- repackage listeners
- register move listener only if auto display is enabled
- standardise the code for each display option
- add list of blocks to ignore to config
- add support for Nova
Please report any issues found preferably on GitHub or Discord -
https://discord.gg/wFYSAS4