mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 11:15:21 +01:00
Made webchat-interval in seconds.
This commit is contained in:
parent
38e997cf37
commit
58060137b4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user