PMAPI must lock the players to prevent ServerConnectEvent interacting with that

This commit is contained in:
Jaime Martinez Rincon 2017-01-21 10:48:30 +01:00
parent 2884c0fe0a
commit bc38d8418d

View File

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