forked from mirror/BlueMap
Update to latest SpongeAPI 11.0.0 (#547)
for that it also does: * Replace `ServerSideConnectionEvent.Disconnect` by `ServerSideConnectionEvent.Leave`
This commit is contained in:
parent
c0b967b5ce
commit
925f9bb1de
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user