Fixed Invalid Role gorup

This commit is contained in:
Cooldude2606
2018-11-09 15:51:09 +00:00
parent f988380096
commit 5426843a45
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ function Group.get(mixed)
if is_type(mixed,'table') and mixed.name then mixed = mixed.name end
if game and Game.get_player(mixed) then mixed = Game.get_player(mixed).permission_group.name end
local rtn = Group.groups[mixed]
if not rtn and is_type(mixed,'string') and game.permissions.get_group(mixed) then
if not rtn and game and is_type(mixed,'string') and game.permissions.get_group(mixed) then
rtn = setmetatable({disallow={},name=mixed},{
__index=function(tbl,key) return Group._prototype[key] or game and game.permissions.get_group(tbl.name)[key] or nil end
})

View File

@@ -213,7 +213,7 @@ Role{
name='Guest',
short_hand='',
tag='',
group='Guest',
group='User',
colour={r=185,g=187,b=160},
allow_afk_kick=true,
is_default=true,