Skip to content

Commit

Permalink
Merge pull request #41 from AzisabaNetwork/fix/register
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style authored Sep 24, 2023
2 parents 0febf52 + a5e581b commit 0ad67e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>net.azisaba</groupId>
<artifactId>Kuvel</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/azisaba/kuvel/Kuvel.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@Plugin(
id = "kuvel",
name = "Kuvel",
version = "2.0.1",
version = "2.0.2",
url = "https://github.com/AzisabaNetwork/Kuvel",
description =
"Server-discovery Velocity plugin for Minecraft servers running in a Kubernetes cluster.",
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/azisaba/kuvel/KuvelServiceHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public void setAndRunServerDiscovery(@Nullable ServerDiscovery newServerDiscover
for (Entry<String, Pod> entry : servers.entrySet()) {
Pod pod = entry.getValue();
InetSocketAddress address = new InetSocketAddress(pod.getStatus().getPodIP(), 25565);
plugin.getProxy().getServer(entry.getKey()).ifPresent(server -> plugin.getProxy().unregisterServer(server.getServerInfo()));
plugin.getProxy().registerServer(new ServerInfo(entry.getKey(), address));

String initialServerStr = pod.getMetadata().getLabels()
Expand Down

0 comments on commit 0ad67e1

Please # to comment.