mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-27 02:57:53 +01:00
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);
|
||||
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();
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user