Fix of fixes

This commit is contained in:
Dereku 2024-09-19 00:59:21 +07:00
parent 9f0ba79d91
commit 56d4318dbe
3 changed files with 25 additions and 7 deletions

View file

@ -21,7 +21,7 @@ public final class LegacyPing extends JavaPlugin {
final int protocol = config.getInt("displayedProtocol", 17);
for (int port : ports) {
try {
this.threads.add(new ServerThread(this.getServer(), host, port, version, protocol));
this.threads.add(new ServerThread(this, host, port, version, protocol));
} catch (IOException e) {
this.getLogger().log(Level.WARNING, "Failed to create ServerSocket", e);
}