From 7df6363aa0247068205a09815721164813849b19 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Sun, 7 Jan 2018 14:50:22 +0100 Subject: 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() --- API.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'API.md') 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 -- cgit v1.2.3