diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-04-04 17:23:46 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-04-04 17:23:46 +0100 |
commit | eeee4a8398a487c0d2f51b14c36ddb7b0cbbe4ac (patch) | |
tree | ad0db2abde53e7103351f8d008e3a100cf828b36 /readme.md | |
parent | ef19940edc20791d2342b7b68b7bb098a0abc2db (diff) |
Clean up player data validation
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ old fork in Carbone, under same license. * awards.run_trigger_callbacks(player, data, trigger, table_func(entry)) * Goes through and checks all triggers registered to a trigger type, unlocking the award if conditions are met. - * data is the player's award data, ie: awards.players[player_name] + * data is the player's award data, ie: awards.player(player_name) * trigger is the name of the trigger type. Ie: awards.on[trigger] * table_func is called if the trigger is a table - simply return an award name to unlock it @@ -51,7 +51,7 @@ old fork in Carbone, under same license. * add to an item's statistic count * for example, (data, "place", "default:stone") will add 1 to the number of times default:stone has been placed. - * data is the player's award data, ie: awards.players[player_name] + * data is the player's award data, ie: awards.player(player_name) * returns true on success, false on failure (eg: cannot get modname and item from itemname) * awards.register_on_unlock(func(name, def)) * name is the player name |