made webchat prefix to configurable

This commit is contained in:
Arthur Mayer 2011-05-31 23:10:16 +02:00
parent aa7d80407f
commit cd02926fb0
6 changed files with 6 additions and 4 deletions

View file

@ -158,7 +158,7 @@ public class JsonFileClientUpdateComponent extends ClientUpdateComponent {
protected void webChat(String name, String message) {
// TODO: Change null to something meaningful.
plugin.mapManager.pushUpdate(new Client.ChatMessage("web", null, name, message, null));
Log.info("[WEB]" + name + ": " + message);
Log.info(plugin.configuration.getString("webprefix", "[WEB] ") + name + ": " + message);
ChatEvent event = new ChatEvent("web", name, message);
plugin.events.trigger("webchat", event);
}