Added support for nametags and fixed a few problems (#84)
* Added regex check for placeholders to avoid useless requests.
Added support for custom nametags. Due to minecraft limit only legacy chatcolor are supported.
Team names now are unique, so 1 team can have max 1 player.
Fixed problem with luckperms event bus while reloading the plugin.
* Update src/main/java/net/william278/velocitab/config/Placeholder.java
Co-authored-by: William <will27528@gmail.com>
* Update src/main/java/net/william278/velocitab/hook/LuckPermsHook.java
Co-authored-by: William <will27528@gmail.com>
* Update src/main/java/net/william278/velocitab/config/Formatter.java
Co-authored-by: William <will27528@gmail.com>
* Update src/main/java/net/william278/velocitab/packet/UpdateTeamsPacket.java
Co-authored-by: William <will27528@gmail.com>
* Fixed problem while updating display names. Changed a few method signature as requested in pr. Applied changes of pr.
* Fixed problems after merging with upstream, fixed problem with player team color on join.
* Update src/main/java/net/william278/velocitab/packet/UpdateTeamsPacket.java
Co-authored-by: William <will27528@gmail.com>
* Update src/main/java/net/william278/velocitab/packet/ScoreboardManager.java
Co-authored-by: William <will27528@gmail.com>
* Update src/main/java/net/william278/velocitab/packet/ScoreboardManager.java
Co-authored-by: William <will27528@gmail.com>
* Update src/main/java/net/william278/velocitab/packet/ScoreboardManager.java
Co-authored-by: William <will27528@gmail.com>
* Update src/main/java/net/william278/velocitab/config/Formatter.java
Co-authored-by: William <will27528@gmail.com>
* Update src/main/java/net/william278/velocitab/player/TabPlayer.java
Co-authored-by: William <will27528@gmail.com>
* Fix username replacement in scoreboard and code typo
This commit resolves two issues. Firstly, changed the variable that we split the nametag on in `ScoreboardManager` from a hardcoded string to the player's specific username. This rectifies an issue where incorrect splitting occurred if the username wasn't exactly "%username%". Secondly, fixed a miswritten method call in `Formatter` from '..legacySection()' to '.legacySection()', correcting a syntax error. Lastly, removed superfluous replacement in `TabPlayer's` getNametag method as it was already handled in `ScoreboardManager`.
---------
Co-authored-by: William <will27528@gmail.com>
Optional dependencies
PAPIProxyBridge
Any compatible version
LuckPerms
Any compatible version
MiniPlaceholders
Any compatible version
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }