Commit Graph

281 Commits

Author SHA1 Message Date
AlexDev_
cb8a50c24f
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>
2023-09-25 15:10:45 +01:00
William
f3f86f54d0
Merge remote-tracking branch 'origin/master' 2023-09-22 18:04:02 +01:00
William
1cbcc94f1c
[ci skip] Bump to v1.5 2023-09-22 18:03:49 +01:00
dependabot[bot]
2bbe2fb830
Bump org.projectlombok:lombok from 1.18.28 to 1.18.30 (#92)
Bumps [org.projectlombok:lombok](https://github.com/projectlombok/lombok) from 1.18.28 to 1.18.30.
- [Release notes](https://github.com/projectlombok/lombok/releases)
- [Changelog](https://github.com/projectlombok/lombok/blob/master/doc/changelog.markdown)
- [Commits](https://github.com/projectlombok/lombok/compare/v1.18.28...v1.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>
2023-09-22 18:01:56 +01:00
dependabot[bot]
cc38bf604d
Bump io.netty:netty-codec-http from 4.1.97.Final to 4.1.98.Final (#93)
Bumps [io.netty:netty-codec-http](https://github.com/netty/netty) from 4.1.97.Final to 4.1.98.Final.
- [Commits](https://github.com/netty/netty/compare/netty-4.1.97.Final...netty-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>
2023-09-22 18:00:15 +01:00
AlexDev_
75d9f32010
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>
2023-09-22 17:57:51 +01:00
AlexDev_
8ae25521dd
Fix encode error on 1.20.1 (#90)
* Added test debug

* Fix issue https://github.com/WiIIiam278/Velocitab/issues/89

* Removed ViaVersion problem message

* Re-Added final keyword on plugin parameter in UpdateTeamsPacket
2023-09-16 10:53:50 +01:00
Nikita Obrekht
90a26f15eb
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
2023-09-15 17:54:25 +01:00
William278
c1682aeda9 Update about menu, minor code cleanup 2023-09-13 10:06:44 +03:00
dependabot[bot]
02dca8ba3f
Bump net.william278:PAPIProxyBridge from 1.3 to 1.4 (#85)
Bumps net.william278:PAPIProxyBridge from 1.3 to 1.4.

---
updated-dependencies:
- dependency-name: net.william278:PAPIProxyBridge
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-12 22:34:13 +03:00
AlexDev_
8d654d6b26
Added support for 1.8.x and 1.12.2 clients (#87)
* Added support for 1.12.2 players

* Added support for 1.8.x & fixed code style

* Moved VersionManager inside ScoreboardManager

* Code refactor

* 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/UpdateTeamsPacket.java

Co-authored-by: William <will27528@gmail.com>

* Update src/main/java/net/william278/velocitab/packet/ProtocolAbstractAdapter.java

Co-authored-by: William <will27528@gmail.com>

* Added requested changes

* Code refactoring

---------

Co-authored-by: William <will27528@gmail.com>
2023-09-12 17:30:55 +03:00
William
1544e302b2
Add exceptionflug maven repo for distributing velocity-proxy
`maven.elytrium.net` is hosted in Russia and is extremely flakey nowerdays it seems.
2023-08-27 17:07:58 +01:00
AlexDev_
8349d7eb51
Added function to unregister packets on plugin disable. [Dev System Only] (#83)
* Added function to unregister packets on plugin disable.

* Update src/main/java/net/william278/velocitab/packet/PacketRegistration.java

Co-authored-by: William <will27528@gmail.com>

* Added null check + changed style

* Update src/main/java/net/william278/velocitab/Velocitab.java

Co-authored-by: William <will27528@gmail.com>

* Fix indentation problem

---------

Co-authored-by: William <will27528@gmail.com>
2023-08-27 17:06:43 +01:00
dependabot[bot]
962f54ea27
Bump io.netty:netty-codec-http from 4.1.96.Final to 4.1.97.Final (#82)
Bumps [io.netty:netty-codec-http](https://github.com/netty/netty) from 4.1.96.Final to 4.1.97.Final.
- [Commits](https://github.com/netty/netty/compare/netty-4.1.96.Final...netty-4.1.97.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>
2023-08-23 18:35:50 +01:00
dependabot[bot]
90a30ea37b
Bump net.william278:annotaml from 2.0.5 to 2.0.7 (#79)
Bumps net.william278:annotaml from 2.0.5 to 2.0.7.

---
updated-dependencies:
- dependency-name: net.william278:annotaml
  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>
2023-08-19 13:55:30 +01:00
Apehum
14482fd43e
Handle DisconnectEvent only if login status is SUCCESSFUL_LOGIN (#80) 2023-08-19 13:55:22 +01:00
dependabot[bot]
97b3bf5deb
Bump net.william278:PAPIProxyBridge from 1.2.2 to 1.3 (#77)
Bumps net.william278:PAPIProxyBridge from 1.2.2 to 1.3.

---
updated-dependencies:
- dependency-name: net.william278:PAPIProxyBridge
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-05 10:29:31 +01:00
dependabot[bot]
936e1b1179
Bump io.netty:netty-codec-http from 4.1.94.Final to 4.1.96.Final (#75)
Bumps [io.netty:netty-codec-http](https://github.com/netty/netty) from 4.1.94.Final to 4.1.96.Final.
- [Commits](https://github.com/netty/netty/compare/netty-4.1.94.Final...netty-4.1.96.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>
2023-07-27 19:37:33 +01:00
dependabot[bot]
70500b0ece
Bump net.william278:annotaml from 2.0.2 to 2.0.5 (#74)
Bumps net.william278:annotaml from 2.0.2 to 2.0.5.

---
updated-dependencies:
- dependency-name: net.william278:annotaml
  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>
2023-07-27 19:37:25 +01:00
William
0ca8d5185b
Fix wrong comment in config file 2023-07-25 12:27:38 +01:00
dependabot[bot]
37b60fa034
Bump io.netty:netty-codec-http from 4.1.93.Final to 4.1.94.Final (#67)
Bumps [io.netty:netty-codec-http](https://github.com/netty/netty) from 4.1.93.Final to 4.1.94.Final.
- [Commits](https://github.com/netty/netty/compare/netty-4.1.93.Final...netty-4.1.94.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>
2023-06-23 15:10:18 +01:00
dependabot[bot]
8e239b9c72
Bump net.william278:PAPIProxyBridge from 1.2.1 to 1.2.2 (#66)
Bumps net.william278:PAPIProxyBridge from 1.2.1 to 1.2.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>
2023-06-23 15:10:10 +01:00
William
084cdec697
docs: Update Config-File.md page 2023-06-15 21:45:58 +01:00
dependabot[bot]
8ba308fc4e
Bump net.william278:PAPIProxyBridge from 1.2 to 1.2.1 (#65)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-12 19:43:52 +01:00
William
cbfe0323cb
[ci skip] Mark compatible with 1.20.1 2023-06-12 18:49:07 +01:00
William
71efba9139
Fix wrong PAPI cache time 2023-06-12 14:25:18 +01:00
William
4a0895cc8b
Add a bit more validation to the PAPI cache time option 2023-06-12 13:17:01 +01:00
William
a55eda8e52
Add option to configure the PAPIProxyBridge cache time 2023-06-12 13:16:12 +01:00
William
07fd9c306a
Add role_display_name placeholder, add docs for sorting 2023-06-12 12:02:33 +01:00
William
4c2735337a
[ci skip] Use new repo for annotaml 2023-06-07 20:44:37 +01:00
William
48251da94f
Merge remote-tracking branch 'origin/master' 2023-06-07 20:37:33 +01:00
William
a5ecf7c637
Bump to 1.4.1, indicate support for 1.20 2023-06-07 20:37:18 +01:00
William
83623eead8
docs: Fix broken link 2023-06-07 09:05:54 +01:00
William
9c7b8ac3df
docs: Add custom logos to homepage 2023-05-29 14:18:08 +01:00
William
aaae3216c8
docs: Add custom logos to sidebar 2023-05-29 14:17:51 +01:00
William
7a1cc640b3
Create Custom-Logos.md
docs: Add docs for displaying custom logos
2023-05-29 14:17:05 +01:00
William
e0fea30feb
docs: Add clarity to update rate part of Animations page 2023-05-29 13:30:54 +01:00
William
49f6f61ba6
docs: Tweak language in Formatting 2023-05-29 13:27:17 +01:00
William
eb36002f36
Fix a few issues in Setup docs 2023-05-29 13:26:15 +01:00
William
04e51a5b64
Bump to v1.4.1 2023-05-29 13:22:23 +01:00
dependabot[bot]
c734a87100
Bump org.projectlombok:lombok from 1.18.26 to 1.18.28 (#59)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 13:21:46 +01:00
dependabot[bot]
6f6ba3b0bb
Bump io.netty:netty-codec-http from 4.1.92.Final to 4.1.93.Final (#60)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 13:21:40 +01:00
dependabot[bot]
ab11f18e60
Bump net.william278:DesertWell from 2.0.2 to 2.0.4 (#55)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-06 15:49:22 +01:00
William
8ba66e7b56
docs: Update Formatting documentation 2023-05-06 15:49:14 +01:00
dependabot[bot]
1f09621e9a
Bump io.netty:netty-codec-http from 4.1.91.Final to 4.1.92.Final (#49)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 21:00:58 +01:00
dependabot[bot]
f75cdca180
Bump org.ajoberstar.grgit from 5.0.0 to 5.2.0 (#48)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 21:00:51 +01:00
ironboundred
3c1a980e25
set minimal update rate (#52) 2023-05-01 20:50:59 +01:00
William
c5b09590c7
Tweak hangar channel config 2023-04-23 18:13:07 +01:00
William
772e5a5f0d
Use game versions for hangar, update title 2023-04-23 18:07:16 +01:00
William
401b438a1a
Test publishing to hangar with mc-publish 2023-04-23 16:44:34 +01:00