summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorAlexander Weber <web.alexander@web.de>2018-01-07 14:50:22 +0100
committerAlexander Weber <web.alexander@web.de>2018-01-07 14:50:22 +0100
commit7df6363aa0247068205a09815721164813849b19 (patch)
tree838b88f355c0c50aacea7fc7e00589a9eb9f9886 /API.md
parent71e05bbd6863ca91db16c386c671da77e8f9e9eb (diff)
Rework private skins handling
-add skin:is_applicable_for_player(playername) method - hide private skins in unified_inventory since not supported - check player assignment in skins.assign_player_skin() + inherited to skins.set_player_skin()
Diffstat (limited to 'API.md')
-rw-r--r--API.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/API.md b/API.md
index 0e6b293..ad0248b 100644
--- a/API.md
+++ b/API.md
@@ -72,7 +72,11 @@ The next metadata keys are usually filled
- name - A name for the skin
- author - The skin author
- license - THe skin texture license
- - assignment - is "player:playername" in case the skin is assigned to be privat for a player
+ - assignment - (obsolete) is "player:playername" in case the skin is assigned to be privat for a player
+ - playername - Player assignment for private skin
## skin:get_meta_string(key)
Same as get_meta() but does return "" instead of nil if the meta key does not exists
+
+## skin:is_applicable_for_player(playername)
+Check if a skin is applicable for the player "playername". Ususally the private skins could be applied to the player only