summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-03-20 23:24:45 +0000
committerKHobbits <rob@khobbits.co.uk>2013-03-20 23:24:45 +0000
commitb8e079ddcbcc69b40d2e2d0e9543f533c641a603 (patch)
treeca21cd9aa637323c37b80835ef3e6c205b8378eb
parent35792f972878881643a77fdd18cc5c42caa8cf19 (diff)
downloadEssentials-b8e079ddcbcc69b40d2e2d0e9543f533c641a603.tar
Essentials-b8e079ddcbcc69b40d2e2d0e9543f533c641a603.tar.gz
Essentials-b8e079ddcbcc69b40d2e2d0e9543f533c641a603.tar.lz
Essentials-b8e079ddcbcc69b40d2e2d0e9543f533c641a603.tar.xz
Essentials-b8e079ddcbcc69b40d2e2d0e9543f533c641a603.zip
Add the max-walk-speed config variable back to the default config file.
-rw-r--r--Essentials/src/com/earth2me/essentials/Settings.java2
-rw-r--r--Essentials/src/config.yml3
2 files changed, 4 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java
index d1bd94489..cb642aaf5 100644
--- a/Essentials/src/com/earth2me/essentials/Settings.java
+++ b/Essentials/src/com/earth2me/essentials/Settings.java
@@ -1022,7 +1022,7 @@ public class Settings implements ISettings
@Override
public double getMaxFlySpeed()
{
- double maxSpeed = config.getDouble("max-fly-speed", 1.0);
+ double maxSpeed = config.getDouble("max-fly-speed", 0.8);
return maxSpeed > 1.0 ? 1.0 : Math.abs(maxSpeed);
}
diff --git a/Essentials/src/config.yml b/Essentials/src/config.yml
index 7d31aaee3..fd698ba9b 100644
--- a/Essentials/src/config.yml
+++ b/Essentials/src/config.yml
@@ -384,6 +384,9 @@ login-attack-delay: 5
#Set the max fly speed, values range from 0.1 to 1.0
max-fly-speed: 0.8
+#Set the max walk speed, values range from 0.1 to 1.0
+max-walk-speed: 0.8
+
#Set the maximum amount of mail that can be sent within a minute.
mails-per-minute: 1000