diff options
author | Alexander Weber <web.alexander@web.de> | 2018-01-07 14:50:22 +0100 |
---|---|---|
committer | Alexander Weber <web.alexander@web.de> | 2018-01-07 14:50:22 +0100 |
commit | 7df6363aa0247068205a09815721164813849b19 (patch) | |
tree | 838b88f355c0c50aacea7fc7e00589a9eb9f9886 /API.md | |
parent | 71e05bbd6863ca91db16c386c671da77e8f9e9eb (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.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |