Update to latest SpongeAPI 11.0.0 (#547)

for that it also does:
* Replace `ServerSideConnectionEvent.Disconnect` by `ServerSideConnectionEvent.Leave`
This commit is contained in:
Phillip Schichtel 2024-06-17 19:38:25 +02:00 committed by GitHub
parent c0b967b5ce
commit 925f9bb1de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View File

@ -38,7 +38,7 @@ dependencies {
}
sponge {
apiVersion("10.0.0")
apiVersion("11.0.0")
license("MIT")
loader {
name(PluginLoaders.JAVA_PLAIN)
@ -52,7 +52,6 @@ sponge {
description("Lead Developer")
}
dependency("spongeapi") {
version("10.0.0")
optional(false)
}
}

View File

@ -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());
}

View File

@ -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) {