More work on /fly command - Still incomplete

Updated and fixed messages files for missing keys.
This commit is contained in:
KHobbits 2012-08-26 17:12:18 +01:00
parent a4936355b5
commit 2b6d41ac5f
17 changed files with 131 additions and 46 deletions

View file

@ -912,4 +912,18 @@ public class Settings implements ISettings
{
return signUsePerSecond;
}
@Override
public double getMaxFlySpeed()
{
double maxSpeed = config.getDouble("max-fly-speed", 1.0);
return maxSpeed > 1.0 ? 1.0 : Math.abs(maxSpeed);
}
@Override
public double getMaxWalkSpeed()
{
double maxSpeed = config.getDouble("max-walk-speed", 0.8);
return maxSpeed > 1.0 ? 1.0 : Math.abs(maxSpeed);
}
}