Skip to content

Commit

Permalink
Clear sample players in Velocity ping listener
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytv committed Sep 13, 2024
1 parent c73e18a commit 3b9ef8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ This file contains update logs for this project. The top may contain a `Unreleas
---
## Unreleased
### Changed
* The `fallback` field now also null values next to an empty array for disabling the feature
* Updated language files from [Crowdin](https://crowdin.com/translate/maintenance)

### Fixed
* Fixed the maintenance dump command
* Fixed the original player sample not being cleared in Velocity
---
## 4.2.1 - May 17th 2024
### Changed
Expand Down Expand Up @@ -110,7 +112,7 @@ This file contains update logs for this project. The top may contain a `Unreleas
* Bungee/Velocity: Added language fields to choose custom kickmessages for individual proxied servers
* See [**HERE**](https://github.com/KennyTV/Maintenance/wiki/Configuration#language-file) for an example setting
* Added Chinese language file (thanks to Spigot user yeban)
* Added Italian language file (thanks to @TheViperShow)
* Added Italian language file
* Updated Russian language file (thanks to Spigot user En_0t_S)
* Removed automated config migration from 2.x->3.0
* See [**HERE**](https://github.com/KennyTV/Maintenance/wiki/Updates#updating-from-2x) on how to do that manually - virtually noone should be using such old versions anymore
Expand Down
2 changes: 1 addition & 1 deletion universal/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tasks {
destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
platforms.forEach { platform ->
val shadowJarTask = platform.tasks.named<ShadowJar>("shadowJar").forUseAtConfigurationTime().get()
val shadowJarTask = platform.tasks.named<ShadowJar>("shadowJar").get()
dependsOn(shadowJarTask)
dependsOn(platform.tasks.withType<Jar>())
from(zipTree(shadowJarTask.archiveFile))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public void execute(final ProxyPingEvent event) {
for (int i = 0; i < lines.length; i++) {
samplePlayers[i] = new ServerPing.SamplePlayer(lines[i], ZERO_UUID);
}
builder.clearSamplePlayers(); // samplePlayers adds
builder.samplePlayers(samplePlayers);
}

Expand Down

0 comments on commit 3b9ef8b

Please sign in to comment.