Fix minor issues

This commit is contained in:
Gabriele C 2016-04-07 22:51:02 +02:00
parent d56b63c5f0
commit 68ef28df08
2 changed files with 3 additions and 3 deletions

View File

@ -184,12 +184,12 @@ public class AsynchronousJoin implements Process {
@Override
public void run() {
player.setOp(false);
if (Settings.isRemoveSpeedEnabled) {
if (!Settings.isMovementAllowed && Settings.isRemoveSpeedEnabled) {
player.setFlySpeed(0.0f);
player.setWalkSpeed(0.0f);
}
player.setNoDamageTicks(registrationTimeout);
if (service.getProperty(HooksSettings.USE_ESSENTIALS_MOTD)) {
if (plugin.getPluginHooks().isEssentialsAvailable() && service.getProperty(HooksSettings.USE_ESSENTIALS_MOTD)) {
player.performCommand("motd");
}
if (service.getProperty(RegistrationSettings.APPLY_BLIND_EFFECT)) {

View File

@ -99,7 +99,7 @@ public class ProcessSyncPlayerLogin implements Runnable {
}
private void restoreSpeedEffects() {
if (settings.getProperty(RestrictionSettings.REMOVE_SPEED)) {
if (!settings.getProperty(RestrictionSettings.ALLOW_UNAUTHED_MOVEMENT) && settings.getProperty(RestrictionSettings.REMOVE_SPEED)) {
player.setWalkSpeed(0.2F);
player.setFlySpeed(0.1F);
}