Merge pull request #149 from atifaziz/patch-1
Typo/Bug fix in Anatomy doc sample code
This commit is contained in:
commit
940211be64
1 changed files with 2 additions and 2 deletions
|
@ -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 ) {
|
||||||
|
|
Reference in a new issue