mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +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)) {
|
if (configuration.getNode("web").getBoolean("allowwebchat", false)) {
|
||||||
SendMessageHandler messageHandler = new SendMessageHandler() {{
|
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>() {
|
onMessageReceived.addListener(new Listener<SendMessageHandler.Message>() {
|
||||||
@Override
|
@Override
|
||||||
public void triggered(Message t) {
|
public void triggered(Message t) {
|
||||||
|
Loading…
Reference in New Issue
Block a user