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

@ -24,7 +24,7 @@ public class HeroWebChatComponent extends Component {
public void triggered(ChatEvent t) {
/* Let HeroChat take a look - only broadcast to players if it doesn't handle it */
if (!handler.sendWebMessageToHeroChat(t.name, t.message)) {
plugin.getServer().broadcastMessage("[WEB]" + t.name + ": " + t.message);
plugin.getServer().broadcastMessage(plugin.configuration.getString("webprefix", "[WEB] ") + t.name + ": " + t.message);
}
}
});