mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed Invalid Role gorup
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user