Made webchat-interval in seconds.

This commit is contained in:
FrozenCow 2011-03-15 22:47:12 +01:00
parent 38e997cf37
commit 58060137b4

View File

@ -145,7 +145,7 @@ public class DynmapPlugin extends JavaPlugin {
if (configuration.getNode("web").getBoolean("allowwebchat", false)) {
SendMessageHandler messageHandler = new SendMessageHandler() {{
maximumMessageInterval = configuration.getNode("web").getInt("webchat-interval", 1000);
maximumMessageInterval = (int)(configuration.getNode("web").getDouble("webchat-interval", 1.0) * 1000);
onMessageReceived.addListener(new Listener<SendMessageHandler.Message>() {
@Override
public void triggered(Message t) {