mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +01:00
some fix to allowchat
This commit is contained in:
parent
32fdf9da86
commit
bc7ddaf9d2
@ -131,9 +131,9 @@ public class DynmapPlugin extends JavaPlugin {
|
|||||||
webServer.handlers.put("/up/", new ClientUpdateHandler(mapManager, playerList, getServer()));
|
webServer.handlers.put("/up/", new ClientUpdateHandler(mapManager, playerList, getServer()));
|
||||||
webServer.handlers.put("/up/configuration", new ClientConfigurationHandler((Map<?, ?>) configuration.getProperty("web")));
|
webServer.handlers.put("/up/configuration", new ClientConfigurationHandler((Map<?, ?>) configuration.getProperty("web")));
|
||||||
|
|
||||||
SendMessageHandler messageHandler = new SendMessageHandler();
|
|
||||||
boolean allowchat = configuration.getBoolean("allowchat", true);
|
boolean allowchat = configuration.getBoolean("allowchat", true);
|
||||||
if (allowchat == true) {
|
if (allowchat == true) {
|
||||||
|
SendMessageHandler messageHandler = new SendMessageHandler();
|
||||||
messageHandler.onMessageReceived.addListener(new Listener<SendMessageHandler.Message>() {
|
messageHandler.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