Temp fix speed restore
This commit is contained in:
parent
87d36f69cf
commit
a438f8b3dc
@ -81,8 +81,11 @@ public class LimboCache {
|
|||||||
PlayerData data = cache.get(lowerName);
|
PlayerData data = cache.get(lowerName);
|
||||||
player.setOp(data.isOperator());
|
player.setOp(data.isOperator());
|
||||||
player.setAllowFlight(data.isCanFly());
|
player.setAllowFlight(data.isCanFly());
|
||||||
player.setWalkSpeed(data.getWalkSpeed());
|
//player.setWalkSpeed(data.getWalkSpeed());
|
||||||
player.setFlySpeed(data.getFlySpeed());
|
//player.setFlySpeed(data.getFlySpeed());
|
||||||
|
// FIXME: this is a temp fix!
|
||||||
|
player.setWalkSpeed(0.2f);
|
||||||
|
player.setFlySpeed(0.2f);
|
||||||
restoreGroup(player, data.getGroup());
|
restoreGroup(player, data.getGroup());
|
||||||
data.clearTasks();
|
data.clearTasks();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,10 +145,6 @@ public class PlayerListener implements Listener {
|
|||||||
if (!settings.getProperty(RestrictionSettings.ALLOW_UNAUTHED_MOVEMENT)) {
|
if (!settings.getProperty(RestrictionSettings.ALLOW_UNAUTHED_MOVEMENT)) {
|
||||||
// "cancel" the event
|
// "cancel" the event
|
||||||
event.setTo(event.getFrom());
|
event.setTo(event.getFrom());
|
||||||
if (settings.getProperty(RestrictionSettings.REMOVE_SPEED)) {
|
|
||||||
player.setFlySpeed(0.0f);
|
|
||||||
player.setWalkSpeed(0.0f);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,6 @@ import fr.xephi.authme.mail.SendMailSSL;
|
|||||||
import fr.xephi.authme.output.MessageKey;
|
import fr.xephi.authme.output.MessageKey;
|
||||||
import fr.xephi.authme.permission.PermissionsManager;
|
import fr.xephi.authme.permission.PermissionsManager;
|
||||||
import fr.xephi.authme.process.AsynchronousProcess;
|
import fr.xephi.authme.process.AsynchronousProcess;
|
||||||
import fr.xephi.authme.process.Management;
|
|
||||||
import fr.xephi.authme.process.ProcessService;
|
import fr.xephi.authme.process.ProcessService;
|
||||||
import fr.xephi.authme.process.SyncProcessManager;
|
import fr.xephi.authme.process.SyncProcessManager;
|
||||||
import fr.xephi.authme.security.HashAlgorithm;
|
import fr.xephi.authme.security.HashAlgorithm;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user