Commit Graph

216 Commits

Author SHA1 Message Date
AlexDev_
3bb457f14e Docs fix 2023-11-06 11:28:19 +01:00
AlexDev_
c36e17b75e
Added PlayerAddedToTabEvent, improved PlayerTabList performance and more (#114)
Added PlayerAddedToTabEvent, improved PlayerTabList performance and added the possibility to reload the plugin without breaking the tab list. This is only for dev purposes. Bumped version to 1.5.2
Fixed a few problems.
2023-11-05 21:15:23 +01:00
dependabot[bot]
c82a0c75d8
build(deps): bump org.apache.commons:commons-text from 1.10.0 to 1.11.0 (#111)
Bumps org.apache.commons:commons-text from 1.10.0 to 1.11.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-text
  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-11-03 01:01:42 +00:00
AlexDev_
7005ceccd7
Added a team exists check when vanishing/unvanishing a player (#110) 2023-10-25 19:54:01 +02:00
dependabot[bot]
e22dc45a21
build(deps): bump org.ajoberstar.grgit from 5.2.0 to 5.2.1 (#109)
Bumps [org.ajoberstar.grgit](https://github.com/ajoberstar/grgit) from 5.2.0 to 5.2.1.
- [Release notes](https://github.com/ajoberstar/grgit/releases)
- [Commits](https://github.com/ajoberstar/grgit/compare/5.2.0...5.2.1)

---
updated-dependencies:
- dependency-name: org.ajoberstar.grgit
  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-10-25 00:11:16 +01:00
William
8d3abf7ef2
docs: Update documentation on supported MC versions 2023-10-22 17:06:54 +01:00
William
3f4cb6c947
Update plugin description 2023-10-21 13:52:13 +01:00
AlexDev_
f03b8f1819
Added an option to remove name tags if prefix & suffix are empty (#108) 2023-10-21 12:58:38 +01:00
William
887359ddd0
docs: Fixup formatting mistake in Sorting 2023-10-19 15:11:08 +01:00
AlexDev_
d0c55b9112
docs: New API documentation corrections (#107)
* Updated docs

* Improved grammar

* Added more information about vanishing a player.
2023-10-19 15:07:50 +01:00
William
ad3183fca1
docs: Add API docs 2023-10-18 19:29:31 +01:00
William
0ab7a81501
[ci skip] Fix API badge on README 2023-10-18 19:04:45 +01:00
William
51d607a6bb
ci: add publishing to maven 2023-10-18 19:04:04 +01:00
William
3d15022565
docs: Update README 2023-10-18 18:59:10 +01:00
AlexDev_
b128f36efa
Added VelocitabAPI, Vanish integration system (#106)
* Added support for VanishIntegration

* Merged

* Added API and improved vanish system

* Fixed problem with API

* Fixed import problem

* Commit with requested changes

* first test

* Added NotNull missing annotations

* Fixed all requested changes

* Fixed logic problem

* Revert "first test"

This reverts commit 1be3c47d9c.

* Hide nametag if the prefix & suffix are empty.

* Fixes for conversations.

* Added missing @NotNull

* Adjust repo order; use `elytrium` over `exceptionflug`

---------

Co-authored-by: William <will27528@gmail.com>
2023-10-18 18:43:03 +01:00
AlexDev_
1e2aff4cf0
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>
2023-10-15 13:04:10 +01:00
William278
3d82ebe809 [ci skip] Bump to 1.5.1 2023-10-13 10:48:36 +01:00
William278
48c2b11e30 docs: Slight nametag formatting fixes 2023-10-13 10:48:21 +01:00
AlexDev_
a79404a530
Improved sorting logic to handle both high and low values. (#103) 2023-10-13 10:08:30 +01:00
Katherine
9090631677
Add all possible protocols to Protocol403Adapter (#102)
Fixes 1.19.2 clients being instantly kicked

Signed-off-by: unilock <unilock@fennet.rentals>
2023-10-12 17:09:11 +01:00
William278
b07c8da4a6 ci: fix version types 2023-10-12 15:51:34 +01:00
William278
23daa22d5d ci: add release action 2023-10-12 15:47:12 +01:00
William278
a1c3b069a5 ci: 1.8.8 is supported too 2023-10-12 14:19:01 +01:00
William278
ce3bb9f954 ci: verbosely state every version
My fork of mc-publish that supports Hangar needs updating because v3.3 adds support for version ranges :(
2023-10-12 14:15:49 +01:00
William278
c05d16eda0 ci: improve version availability info 2023-10-12 14:03:21 +01:00
William278
b40a48a987 docs: Document new placeholders 2023-10-12 13:44:29 +01:00
William
8224cd0ff1
Fixes, logic simplification, update docs for nametags (#101) 2023-10-12 11:44:27 +01:00
William
1f1e69ebca
Add support for Minecraft 1.20.2 (#99)
* Add protocol mappings for 1.20.2

* Cleanup some exception handling

* ci: Mark 1.20.2 as supported

* Minor code formatting tweaks
2023-10-11 17:10:29 +01:00
dependabot[bot]
fd17560f2e
Bump io.netty:netty-codec-http from 4.1.99.Final to 4.1.100.Final (#98)
Bumps [io.netty:netty-codec-http](https://github.com/netty/netty) from 4.1.99.Final to 4.1.100.Final.
- [Commits](https://github.com/netty/netty/compare/netty-4.1.99.Final...netty-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>
2023-10-10 19:11:18 +01:00
dependabot[bot]
65141d0e61
Bump net.william278:PAPIProxyBridge from 1.4 to 1.4.2 (#97)
Bumps [net.william278:PAPIProxyBridge](https://github.com/WiIIiam278/PAPIProxyBridge) from 1.4 to 1.4.2.
- [Release notes](https://github.com/WiIIiam278/PAPIProxyBridge/releases)
- [Commits](https://github.com/WiIIiam278/PAPIProxyBridge/compare/1.4...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>
2023-10-07 11:29:14 +01:00
dependabot[bot]
43d36d3425
Bump io.netty:netty-codec-http from 4.1.98.Final to 4.1.99.Final (#96)
Bumps [io.netty:netty-codec-http](https://github.com/netty/netty) from 4.1.98.Final to 4.1.99.Final.
- [Commits](https://github.com/netty/netty/compare/netty-4.1.98.Final...netty-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>
2023-09-29 22:37:34 +01:00
William278
5ad41e041f Use text block instead of concat in Settings 2023-09-25 15:21:54 +01:00
William278
7a558d4072 Fix trailing comma in Protocol403Adapter 2023-09-25 15:21:11 +01:00
William278
6c8b1b8147 Update config file with new sorting key 2023-09-25 15:20:34 +01:00
William278
2afbf38ee1 Add %server_group% and %server_group_index% placeholders 2023-09-25 15:19:32 +01:00
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