Skip to content

Commit

Permalink
Update to latest SpongeAPI 11.0.0-SNAPSHOT
Browse files Browse the repository at this point in the history
for that it also does:
* Replace `ServerSideConnectionEvent.Disconnect` by `ServerSideConnectionEvent.Leave`
  • Loading branch information
pschichtel committed Jun 16, 2024
1 parent c0b967b commit c74eead
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions implementations/sponge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
}

sponge {
apiVersion("10.0.0")
apiVersion("11.0.0-SNAPSHOT")
license("MIT")
loader {
name(PluginLoaders.JAVA_PLAIN)
Expand All @@ -52,7 +52,6 @@ sponge {
description("Lead Developer")
}
dependency("spongeapi") {
version("10.0.0")
optional(false)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void onPlayerJoin(ServerSideConnectionEvent.Join evt) {
}

@Listener(order = Order.POST)
public void onPlayerLeave(ServerSideConnectionEvent.Disconnect evt) {
public void onPlayerLeave(ServerSideConnectionEvent.Leave evt) {
listener.onPlayerJoin(evt.player().uniqueId());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void onPlayerJoin(ServerSideConnectionEvent.Join evt) {
}

@Listener
public void onPlayerLeave(ServerSideConnectionEvent.Disconnect evt) {
public void onPlayerLeave(ServerSideConnectionEvent.Leave evt) {
UUID playerUUID = evt.player().uniqueId();
onlinePlayerMap.remove(playerUUID);
synchronized (onlinePlayerList) {
Expand Down

0 comments on commit c74eead

Please sign in to comment.