summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-04 17:23:46 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-04 17:23:46 +0100
commiteeee4a8398a487c0d2f51b14c36ddb7b0cbbe4ac (patch)
treead0db2abde53e7103351f8d008e3a100cf828b36 /readme.md
parentef19940edc20791d2342b7b68b7bb098a0abc2db (diff)
Clean up player data validation
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index 58b50a4..6fbfee4 100644
--- a/readme.md
+++ b/readme.md
@@ -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