diff options
author | bell07 <web.alexander@web.de> | 2018-01-07 20:38:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-07 20:38:34 +0100 |
commit | c6ee5c2d5bcf17f83ceee72c3da773b8e9090e20 (patch) | |
tree | 62aefa088bc11b5b75968e3c8134edcd1a6ea940 /skin_meta_api.lua | |
parent | 71e05bbd6863ca91db16c386c671da77e8f9e9eb (diff) | |
parent | 6a09746b903d63302d9dd339877bf450adb3a52c (diff) |
Merge pull request #2 from bell07/pr_private_skins
Rework private skins handling
Diffstat (limited to 'skin_meta_api.lua')
-rw-r--r-- | skin_meta_api.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/skin_meta_api.lua b/skin_meta_api.lua index 5219e1d..5ff17f1 100644 --- a/skin_meta_api.lua +++ b/skin_meta_api.lua @@ -69,3 +69,10 @@ function skin_class:set_skin(player) textures = {self:get_texture()}, }) end + +function skin_class:is_applicable_for_player(playername) + local assigned_player = self:get_meta("playername") + return assigned_player == nil or + assigned_player == playername or + assigned_player == true +end |