mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 20:05:22 +09:00
Added Module: ExpGamingCore.Gui
This commit is contained in:
@@ -292,11 +292,12 @@ script.on_event('on_tick',function(event)
|
||||
end)
|
||||
|
||||
function Sync:on_init()
|
||||
-- updates installed mods
|
||||
if loaded_modules.Gui then verbose('ExpGamingCore.Gui is installed; Loading gui src') require(module_path..'/src/gui') end
|
||||
if loaded_modules.Ranking then verbose('ExpGamingCore.Ranking is installed; Loading ranking src') require(module_path..'/src/ranking') end
|
||||
end
|
||||
|
||||
function Sync:on_post()
|
||||
Sync.info{mods=table.keys(loaded_modules)}
|
||||
-- optinal dependies
|
||||
if loaded_modules.Gui then verbose('ExpGamingCore.Gui is installed; Loading gui lib') require(module_path..'/src/gui') end
|
||||
if loaded_modules.Ranking then verbose('ExpGamingCore.Ranking is installed; Loading ranking lib') require(module_path..'/src/ranking') end
|
||||
end
|
||||
|
||||
return Sync
|
||||
@@ -41,7 +41,7 @@ script.on_event('rank_change',function(event)
|
||||
local rank = Ranking.get_rank(event.new_rank)
|
||||
local player = Game.get_player(event)
|
||||
local by_player_name = Game.get_player(event.by_player_index) or '<server>'
|
||||
local global = global('Ranking')
|
||||
local global = global.Ranking
|
||||
if rank.group.name == 'Jail' and global.last_change ~= player.name then
|
||||
Sync.emit_embeded{
|
||||
title='Player Jail',
|
||||
|
||||
Reference in New Issue
Block a user