Update torchlight_changes_unloze/torchlight3/Torchlight/Commands.py
This commit is contained in:
parent
3394c4d85b
commit
c5506672d7
@ -593,6 +593,16 @@ class Access(BaseCommand):
|
|||||||
return -1
|
return -1
|
||||||
|
|
||||||
tl = self._get_torchlight()
|
tl = self._get_torchlight()
|
||||||
|
args = message[1].strip() if len(message) > 1 and message[1] else ""
|
||||||
|
|
||||||
|
if args:
|
||||||
|
player_level = self._get_player_level(player)
|
||||||
|
if player_level >= 6:
|
||||||
|
admin_cmd = AdminAccess(self.Torchlight)
|
||||||
|
return await admin_cmd._modify_access(args, player, tl)
|
||||||
|
tl.SayPrivate(player, "[ACCESS] Admin level required to modify access")
|
||||||
|
return 1
|
||||||
|
|
||||||
tl.SayChat(format_player_access(tl, player), player)
|
tl.SayChat(format_player_access(tl, player), player)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user