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:
parent
bded5e8bd5
commit
de122d8377
1 changed files with 2 additions and 2 deletions
|
@ -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 ) {
|
||||
|
|
Reference in a new issue