Prevent chained aliases in chatalias #43
11
chatalias.py
11
chatalias.py
@ -55,11 +55,18 @@ permission_FINFO = "utils.alias.finfo"
|
||||
# CODE #
|
||||
########
|
||||
|
||||
# OnEnable
|
||||
# OnModuleLoad
|
||||
enabled = helpers_version in helpers_versions
|
||||
if not enabled:
|
||||
error = colorify("&6Incompatible versions detected (&chelpers.py&6)")
|
||||
|
||||
for player in Server.getOnlinePlayers():
|
||||
if enabled:
|
||||
t = threading.Thread(target=load_data, args=(uid(event.getPlayer()), ))
|
||||
t.daemon = True
|
||||
t.start()
|
||||
else:
|
||||
if event.getPlayer().hasPermission(permission_FINFO):
|
||||
disabled_fallback(event.getPlayer())
|
||||
|
||||
def safe_open_json(uuid):
|
||||
if not os.path.exists("plugins/redstoner-utils.py.dir/files/aliases"):
|
||||
|
Reference in New Issue
Block a user