diff --git a/implementations/sponge/build.gradle.kts b/implementations/sponge/build.gradle.kts index 395c7399d..4fcbc5412 100644 --- a/implementations/sponge/build.gradle.kts +++ b/implementations/sponge/build.gradle.kts @@ -38,7 +38,7 @@ dependencies { } sponge { - apiVersion("10.0.0") + apiVersion("11.0.0-SNAPSHOT") license("MIT") loader { name(PluginLoaders.JAVA_PLAIN) @@ -52,7 +52,6 @@ sponge { description("Lead Developer") } dependency("spongeapi") { - version("10.0.0") optional(false) } } diff --git a/implementations/sponge/src/main/java/de/bluecolored/bluemap/sponge/EventForwarder.java b/implementations/sponge/src/main/java/de/bluecolored/bluemap/sponge/EventForwarder.java index ef6b179fb..9dc4637f4 100644 --- a/implementations/sponge/src/main/java/de/bluecolored/bluemap/sponge/EventForwarder.java +++ b/implementations/sponge/src/main/java/de/bluecolored/bluemap/sponge/EventForwarder.java @@ -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()); } diff --git a/implementations/sponge/src/main/java/de/bluecolored/bluemap/sponge/SpongePlugin.java b/implementations/sponge/src/main/java/de/bluecolored/bluemap/sponge/SpongePlugin.java index 0ed3f60c8..4d0abbc19 100644 --- a/implementations/sponge/src/main/java/de/bluecolored/bluemap/sponge/SpongePlugin.java +++ b/implementations/sponge/src/main/java/de/bluecolored/bluemap/sponge/SpongePlugin.java @@ -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) {