Merge pull request #149 from atifaziz/patch-1

Typo/Bug fix in Anatomy doc sample code
This commit is contained in:
Walter Higgins 2014-07-26 11:48:08 +01:00
commit 940211be64

View file

@ -50,7 +50,7 @@ chosen color...
var player = evt.player; var player = evt.player;
var playerChatColor = _store.players[ player.name ]; var playerChatColor = _store.players[ player.name ];
if ( playerChatColor ) { if ( playerChatColor ) {
evt.message = '§' + colorCodes[ playerChatColor ] + e.message; evt.message = '§' + colorCodes[ playerChatColor ] + evt.message;
} }
}); });
@ -116,7 +116,7 @@ code is just a couple of lines of code but is a fully working plugin...
var player = evt.player; var player = evt.player;
var playerChatColor = _store.players[player.name]; var playerChatColor = _store.players[player.name];
if ( playerChatColor ) { if ( playerChatColor ) {
evt.message = '§' + colorCodes[playerChatColor] + e.message; evt.message = '§' + colorCodes[playerChatColor] + evt.message;
} }
}); });
command( 'chat_color', function( params, sender ) { command( 'chat_color', function( params, sender ) {