mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-13 16:14:52 +09:00
Added way to load modules to /interface
This commit is contained in:
1 parent
e14c3a68b9
commit
cd5abfc225
5 files changed
+20
-4
No files matched your search
@@ -10,6 +10,7 @@
|
||||
local Game = require('FactorioStdLib.Game')
|
||||
local Color = require('FactorioStdLib.Color')
|
||||
local Server = require('ExpGamingCore.Server')
|
||||
local Ranking = Ranking
|
||||
|
||||
--- Print a message to all players of this rank
|
||||
-- @usage rank:print('foo') -- prints to all members of this rank
|
||||
@@ -44,4 +45,7 @@ script.on_event('on_tick',function(event)
|
||||
Ranking.find_preset(player,tick)
|
||||
end):open()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
Server.add_to_interface('rank',function() return Ranking.get_rank(game.player) end)
|
||||
Server.add_module_to_interface('Ranking')
|
||||
Reference in new issue
Block a user