mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-09-17 10:14:10 +02:00
PMAPI must lock the players to prevent ServerConnectEvent interacting with that
This commit is contained in:
parent
2884c0fe0a
commit
bc38d8418d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user