Run explicit non-thread-safe setGameMode sync

This commit is contained in:
games647 2016-05-26 10:52:49 +02:00
parent 41bad6189e
commit 466fb8cab9

View File

@ -89,7 +89,12 @@ public class AsynchronousJoin implements AsynchronousProcess {
if (service.getProperty(RestrictionSettings.FORCE_SURVIVAL_MODE)
&& !service.hasPermission(player, PlayerStatePermission.BYPASS_FORCE_SURVIVAL)) {
player.setGameMode(GameMode.SURVIVAL);
bukkitService.runTask(new Runnable() {
@Override
public void run() {
player.setGameMode(GameMode.SURVIVAL);
}
});
}
if (service.getProperty(HooksSettings.DISABLE_SOCIAL_SPY)) {