Prevent chained aliases in chatalias #43
27
chatalias.py
27
chatalias.py
@ -55,19 +55,6 @@ permission_FINFO = "utils.alias.finfo"
|
|||||||
# CODE #
|
# CODE #
|
||||||
########
|
########
|
||||||
|
|
||||||
# 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):
|
def safe_open_json(uuid):
|
||||||
if not os.path.exists("plugins/redstoner-utils.py.dir/files/aliases"):
|
if not os.path.exists("plugins/redstoner-utils.py.dir/files/aliases"):
|
||||||
os.makedirs("plugins/redstoner-utils.py.dir/files/aliases")
|
os.makedirs("plugins/redstoner-utils.py.dir/files/aliases")
|
||||||
@ -365,3 +352,17 @@ remotes = {
|
|||||||
"remove": rremove,
|
"remove": rremove,
|
||||||
"list": rlist_alias,
|
"list": rlist_alias,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 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())
|
||||||
|
Reference in New Issue
Block a user