diff options
Diffstat (limited to 'skin_meta_api.lua')
-rw-r--r-- | skin_meta_api.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/skin_meta_api.lua b/skin_meta_api.lua index 5219e1d..1e3bd99 100644 --- a/skin_meta_api.lua +++ b/skin_meta_api.lua @@ -69,3 +69,8 @@ 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 not assigned_player or assigned_player == playername +end |