From bc38d8418ddfdbd95e1dc94564ea3657c2b28ec1 Mon Sep 17 00:00:00 2001 From: Jaime Martinez Rincon Date: Sat, 21 Jan 2017 10:48:30 +0100 Subject: [PATCH] PMAPI must lock the players to prevent ServerConnectEvent interacting with that --- .../lobbybalancer/listener/PluginMessageListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/jaimemartz/lobbybalancer/listener/PluginMessageListener.java b/src/main/java/me/jaimemartz/lobbybalancer/listener/PluginMessageListener.java index 15cdfa2..f0a6c6c 100644 --- a/src/main/java/me/jaimemartz/lobbybalancer/listener/PluginMessageListener.java +++ b/src/main/java/me/jaimemartz/lobbybalancer/listener/PluginMessageListener.java @@ -41,6 +41,7 @@ public class PluginMessageListener implements Listener { return; } + PlayerLocker.lock(player); new ConnectionIntent(plugin, player, section) { @Override public void connect(ServerInfo server) { @@ -65,6 +66,7 @@ public class PluginMessageListener implements Listener { return; } + PlayerLocker.lock(player); new ConnectionIntent(plugin, player, section) { @Override public void connect(ServerInfo server) {