Cleaned up join/quit messages (not being send as chat messages)
This commit is contained in:
parent
be1424ec14
commit
542bda59d4
6 changed files with 47 additions and 26 deletions
|
|
@ -12,10 +12,7 @@ componentconstructors['chat'] = function(dynmap, configuration) {
|
|||
$(dynmap).bind('worldupdate', function(event, update) {
|
||||
swtch(update.type, {
|
||||
chat: function() {
|
||||
$(dynmap).trigger('chat', [{source: 'player', name: update.playerName, text: update.message}]);
|
||||
},
|
||||
webchat: function() {
|
||||
$(dynmap).trigger('chat', [{source: 'web', name: update.playerName, text: update.message}]);
|
||||
$(dynmap).trigger('chat', [{source: update.source, name: update.playerName, text: update.message}]);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue