Fixes issue #133

This commit is contained in:
walterhiggins 2014-04-07 20:43:23 +01:00
parent 2adf0e3792
commit 35d67fe6e4

View file

@ -73,11 +73,11 @@ foreach( colors, function ( color, i ) {
colorCodes[color] = i.toString( 16 ); colorCodes[color] = i.toString( 16 );
} ); } );
events.on( 'player.AsyncPlayerChatEvent', function( l, e ) { events.on( 'player.AsyncPlayerChatEvent', function( event ) {
var player = e.player; var player = event.player;
var playerChatColor = _store.players[ player.name ]; var playerChatColor = _store.players[ player.name ];
if ( playerChatColor ) { if ( playerChatColor ) {
e.message = '§' + colorCodes[ playerChatColor ] + e.message; event.message = '§' + colorCodes[ playerChatColor ] + event.message;
} }
}); });