diff --git a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java index 245380ed..478dcda6 100644 --- a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java +++ b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java @@ -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)) {