Prevent chained aliases in chatalias #43

Merged
Dico200 merged 7 commits from chatalias-chained-aliases-patch into dev 2016-05-28 21:06:32 +00:00
Showing only changes of commit a19f0b5bdc - Show all commits

View File

@ -55,11 +55,18 @@ permission_FINFO = "utils.alias.finfo"
# CODE # # CODE #
######## ########
# OnEnable # OnModuleLoad
enabled = helpers_version in helpers_versions enabled = helpers_version in helpers_versions
if not enabled: if not enabled:
error = colorify("&6Incompatible versions detected (&chelpers.py&6)") 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"):