Typo/Bug fix in Anatomy doc sample code

The sample code refers to `e.message` when `evt.message` was intended. This causes a run-time exception because `e` is undefined.
This commit is contained in:
Atif Aziz 2014-07-13 13:09:41 +02:00
parent bded5e8bd5
commit de122d8377

View file

@ -50,7 +50,7 @@ chosen color...
var player = evt.player;
var playerChatColor = _store.players[ player.name ];
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 playerChatColor = _store.players[player.name];
if ( playerChatColor ) {
evt.message = '§' + colorCodes[playerChatColor] + e.message;
evt.message = '§' + colorCodes[playerChatColor] + evt.message;
}
});
command( 'chat_color', function( params, sender ) {