Temp fix speed restore

This commit is contained in:
Gabriele C 2016-08-09 18:01:23 +02:00
parent 87d36f69cf
commit a438f8b3dc
3 changed files with 5 additions and 7 deletions

View File

@ -81,8 +81,11 @@ public class LimboCache {
PlayerData data = cache.get(lowerName);
player.setOp(data.isOperator());
player.setAllowFlight(data.isCanFly());
player.setWalkSpeed(data.getWalkSpeed());
player.setFlySpeed(data.getFlySpeed());
//player.setWalkSpeed(data.getWalkSpeed());
//player.setFlySpeed(data.getFlySpeed());
// FIXME: this is a temp fix!
player.setWalkSpeed(0.2f);
player.setFlySpeed(0.2f);
restoreGroup(player, data.getGroup());
data.clearTasks();
}

View File

@ -145,10 +145,6 @@ public class PlayerListener implements Listener {
if (!settings.getProperty(RestrictionSettings.ALLOW_UNAUTHED_MOVEMENT)) {
// "cancel" the event
event.setTo(event.getFrom());
if (settings.getProperty(RestrictionSettings.REMOVE_SPEED)) {
player.setFlySpeed(0.0f);
player.setWalkSpeed(0.0f);
}
return;
}

View File

@ -8,7 +8,6 @@ import fr.xephi.authme.mail.SendMailSSL;
import fr.xephi.authme.output.MessageKey;
import fr.xephi.authme.permission.PermissionsManager;
import fr.xephi.authme.process.AsynchronousProcess;
import fr.xephi.authme.process.Management;
import fr.xephi.authme.process.ProcessService;
import fr.xephi.authme.process.SyncProcessManager;
import fr.xephi.authme.security.HashAlgorithm;