diff options
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 |