Added Sorting Manager (#105)
-
Added SortingManager.
-
Fixed initialization problem + added cache for team name
-
Improved code readability
-
Commit with the requested changes.
-
Update src/main/java/net/william278/velocitab/Velocitab.java
Co-authored-by: William will27528@gmail.com
Co-authored-by: William will27528@gmail.com
Improved sorting logic to handle both high and low values. (#103)
Add all possible protocols to Protocol403Adapter (#102)
Fixes 1.19.2 clients being instantly kicked
Signed-off-by: unilock unilock@fennet.rentals
ci: fix version types
ci: add release action
Note: Please regenerate your config file for this release as there have been config changes.
Velocitab 1.5 is a significant release that adds support for Minecraft 1.20.2, makes it possible to customise nametags displayed above players in-game, and improves the flexibility of the list sorting system.
- Added support for Minecraft 1.20.2 (#99)
- You must be running the absolute latest build of Velocity for this to work, as some critical TAB-related issues have only just been fixed!
- The config option for sorting users by now supports placeholders instead of sorting keys, courtesy of @alexdev03 (#94)
- Works with both built-in placeholders and PAPIProxyBridge placeholders
- Will sort alphabetically based on the resolved placeholder
- Note that integer-returning placeholders may not sort correctly; the built-in role weight placeholder will account for this
- Added a few new built-in placeholders:
- Added the
%server_group_index%
placeholder (useful for sorting users by server), courtesy of @StrixG (#88) - Added the
%role_weight%
placeholder. This placeholder returns a comparable stringified version of the user's role weight
- Added the
- Added support for formatting above-head nametags, courtesy of @alexdev03 (#84)
- You can now customize the nametag displayed above players heads with additional text and colors.
- Check the docs for more information!
- Added a new option to
config.yml
for turning on/off scoreboard packet dispatching; required for both sorting and nametags. - Added support for dispatching and sorting teams for Minecraft 1.8.x and 1.12.2 clients, courtesy of @alexdev03 (#87)
- Fixed the DisconnectEvent still being handled even if the login state was not
SUCCESSFUL_LOGIN
, courtesy of @Apehum (#80) - Fixed Update teams packets not being unregistered when the plugin disabled, courtesy of @alexdev03 (#83)
- Fixed a rare packet encoding error on Minecraft 1.20.1, courtesy of @alexdev03 (#90)
To update, just drag+drop and regenerate your config.yml
file for this release as there have been config changes.
ci: 1.8.8 is supported too
Fixes, logic simplification, update docs for nametags (#101)
Bump io.netty:netty-codec-http from 4.1.99.Final to 4.1.100.Final (#98)
Bumps io.netty:netty-codec-http from 4.1.99.Final to 4.1.100.Final.
updated-dependencies:
- dependency-name: io.netty:netty-codec-http dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump net.william278:PAPIProxyBridge from 1.4 to 1.4.2 (#97)
Bumps net.william278:PAPIProxyBridge from 1.4 to 1.4.2.
updated-dependencies:
- dependency-name: net.william278:PAPIProxyBridge dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump io.netty:netty-codec-http from 4.1.98.Final to 4.1.99.Final (#96)
Bumps io.netty:netty-codec-http from 4.1.98.Final to 4.1.99.Final.
updated-dependencies:
- dependency-name: io.netty:netty-codec-http dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Use text block instead of concat in Settings
Sorting System with Placeholders (#94)
-
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.
-
Added support for placeholders as sorting system
-
Code reformat
-
Update logging, task scheduling and player rosters
Modified logging in the ScoreboardManager to represent playerNames as an array for readability. Ensured all tasks scheduled by Velocitab are canceled on proxy shutdown to prevent unwanted behavior. Reworked player roster management in PlayerTabList to correctly update player roles and decrease asynchronicity, enhancing performance and preventing possible race conditions.
-
Fixed problems after merging with upstream, fixed problem with player team color on join.
-
Fixed problems with pr-merge. Added sorting system with placeholders.
-
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
.
-
Reformat code
-
Changed logic with only one plugin message request.
-
Update src/main/java/net/william278/velocitab/sorting/SortingManager.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/packet/ScoreboardManager.java
Co-authored-by: William will27528@gmail.com
-
Fixed requested changes
-
Changed docs
Co-authored-by: William will27528@gmail.com
Merge remote-tracking branch 'origin/master'
Bump org.projectlombok:lombok from 1.18.28 to 1.18.30 (#92)
Bumps org.projectlombok:lombok from 1.18.28 to 1.18.30.
updated-dependencies:
- dependency-name: org.projectlombok:lombok dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump io.netty:netty-codec-http from 4.1.97.Final to 4.1.98.Final (#93)
Bumps io.netty:netty-codec-http from 4.1.97.Final to 4.1.98.Final.
updated-dependencies:
- dependency-name: io.netty:netty-codec-http dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
Fix encode error on 1.20.1 (#90)
-
Added test debug
-
Removed ViaVersion problem message
-
Re-Added final keyword on plugin parameter in UpdateTeamsPacket
Add sorting by server group (#88)
-
Add sorting by group order and group name
-
Fix sorting by server group
-
Use order of groups instead of config option
-
Remove redundant getServerGroup in SERVER_GROUP
-
Update Sorting in docs
Update about menu, minor code cleanup