Speed 0 when not logged!

This commit is contained in:
Gabriele C
2015-09-19 22:28:55 +02:00
parent dc35d768aa
commit b427d14bcb
6 changed files with 22 additions and 0 deletions
@@ -235,6 +235,10 @@ public class AsyncronousJoin {
player.performCommand("motd");
if (Settings.applyBlindEffect)
player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, Settings.getRegistrationTimeout * 20, 2));
if (!Settings.isMovementAllowed) {
player.setWalkSpeed(0.0f);
player.setFlySpeed(0.0f);
}
}
});