mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-16 02:46:55 +02:00
added regulars and mods
This commit is contained in:
parent
dc5752ea38
commit
1cee784b54
12
resources/mods.lua
Normal file
12
resources/mods.lua
Normal file
@ -0,0 +1,12 @@
|
||||
return {
|
||||
["dpoba"] = "",
|
||||
["masjazz"] = "",
|
||||
["mbas"] = "",
|
||||
["selen"] = "",
|
||||
["sholvo"] = "",
|
||||
["animal"] = "",
|
||||
["terarink"] = "",
|
||||
["theorangeangle"] = "",
|
||||
["fabilord98"] = "",
|
||||
["rickeyhb"] = ""
|
||||
}
|
255
resources/regulars.lua
Normal file
255
resources/regulars.lua
Normal file
@ -0,0 +1,255 @@
|
||||
return {
|
||||
["helpower2"] = "",
|
||||
["rorror"] = "",
|
||||
["medival3"] = "",
|
||||
["dpoba"] = "",
|
||||
["cheeselicker"] = "",
|
||||
["cpaca0"] = "",
|
||||
["utidi"] = "",
|
||||
["jokerofthez"] = "",
|
||||
["saltlands"] = "",
|
||||
["maniah"] = "",
|
||||
["cool"] = "",
|
||||
["boail"] = "",
|
||||
["hunter117x"] = "",
|
||||
["tonytroll"] = "",
|
||||
["highinfiberoptics"] = "",
|
||||
["atoms"] = "",
|
||||
["adlmr"] = "",
|
||||
["rayijin"] = "",
|
||||
["sephir"] = "",
|
||||
["inator1192"] = "",
|
||||
["tezwo"] = "",
|
||||
["neumond"] = "",
|
||||
["bhenoa"] = "",
|
||||
["jbc363"] = "",
|
||||
["kaig3n"] = "",
|
||||
["factorioio"] = "",
|
||||
["bawz"] = "",
|
||||
["crazystephen"] = "",
|
||||
["eithel"] = "",
|
||||
["coyote101"] = "",
|
||||
["jedifan"] = "",
|
||||
["xsidd"] = "",
|
||||
["maxthespunkymunk"] = "",
|
||||
["tarpon907"] = "",
|
||||
["bighamster"] = "",
|
||||
["sir"] = "",
|
||||
["arnietom"] = "",
|
||||
["animal"] = "",
|
||||
["banakeg"] = "",
|
||||
["philip017"] = "",
|
||||
["ninjrkillr"] = "",
|
||||
["marckhardt"] = "",
|
||||
["brainclot"] = "",
|
||||
["blzz"] = "",
|
||||
["watchinghawk"] = "",
|
||||
["farcear"] = "",
|
||||
["selen"] = "",
|
||||
["trekie4747"] = "",
|
||||
["gizan"] = "",
|
||||
["slastraf"] = "",
|
||||
["zacman0510"] = "",
|
||||
["theorangeangle"] = "",
|
||||
["williambellwisdo"] = "",
|
||||
["extraxyz"] = "",
|
||||
["markupolioncz"] = "",
|
||||
["bjhunter"] = "",
|
||||
["ztx"] = "",
|
||||
["bigglesthepirate"] = "",
|
||||
["g-h-o-s-t"] = "",
|
||||
["wekkka"] = "",
|
||||
["beelzemon"] = "",
|
||||
["rododendro"] = "",
|
||||
["mrkoss"] = "",
|
||||
["koretego"] = "",
|
||||
["cogito123"] = "",
|
||||
["palulukan"] = "",
|
||||
["radianraze"] = "",
|
||||
["kostrahb"] = "",
|
||||
["mafisch3"] = "",
|
||||
["cydes"] = "",
|
||||
["ccaspanello"] = "",
|
||||
["wickvitaminc"] = "",
|
||||
["newcott"] = "",
|
||||
["craigrood"] = "",
|
||||
["lillepallt"] = "",
|
||||
["skykittena"] = "",
|
||||
["rico2403"] = "",
|
||||
["claude47"] = "",
|
||||
["mrsjaakbraak"] = "",
|
||||
["heretek"] = "",
|
||||
["factorian12321"] = "",
|
||||
["steponitnicejob"] = "",
|
||||
["cchpucky"] = "",
|
||||
["rulerofdabacon"] = "",
|
||||
["tcp"] = "",
|
||||
["marucan"] = "",
|
||||
["twltriston"] = "",
|
||||
["bemm"] = "",
|
||||
["lordxleasy"] = "",
|
||||
["judaires"] = "",
|
||||
["flowild"] = "",
|
||||
["aalexx"] = "",
|
||||
["zila"] = "",
|
||||
["pyroguy"] = "",
|
||||
["tickterd"] = "",
|
||||
["trevoqr"] = "",
|
||||
["pietloke"] = "",
|
||||
["bloodydevil"] = "",
|
||||
["mike-_-"] = "",
|
||||
["asddsa76"] = "",
|
||||
["tomymy"] = "",
|
||||
["geckozila"] = "",
|
||||
["starlite"] = "",
|
||||
["ducktaperules"] = "",
|
||||
["tvardero"] = "",
|
||||
["thethane"] = "",
|
||||
["lejnel"] = "",
|
||||
["griffinonetwo"] = "",
|
||||
["stat0x00"] = "",
|
||||
["gynox"] = "",
|
||||
["miniman10000"] = "",
|
||||
["aliiien0110"] = "",
|
||||
["gespenstdermaschine"] = "",
|
||||
["brathahn"] = "",
|
||||
["leadhades27"] = "",
|
||||
["sl"] = "",
|
||||
["phountix"] = "",
|
||||
["yago2003"] = "",
|
||||
["saneman"] = "",
|
||||
["mesohorknee"] = "",
|
||||
["brl_chacal"] = "",
|
||||
["spechok"] = "",
|
||||
["everlord"] = "",
|
||||
["chessindustries"] = "",
|
||||
["petebra11"] = "",
|
||||
["collin08"] = "",
|
||||
["cybernoise"] = "",
|
||||
["sholvo"] = "",
|
||||
["nexarius"] = "",
|
||||
["jinnjuice"] = "",
|
||||
["corlin"] = "",
|
||||
["xeoxius"] = "",
|
||||
["altech"] = "",
|
||||
["dq_shell"] = "",
|
||||
["terz42"] = "",
|
||||
["fullfruntall"] = "",
|
||||
["heaser"] = "",
|
||||
["terradus"] = "",
|
||||
["wesoly1234"] = "",
|
||||
["sholax"] = "",
|
||||
["thadius856"] = "",
|
||||
["oliveawesomesauz"] = "",
|
||||
["rafaelvalim"] = "",
|
||||
["terarink"] = "",
|
||||
["ruslan_kc"] = "",
|
||||
["bobbje"] = "",
|
||||
["snerktk"] = "",
|
||||
["aplavins"] = "",
|
||||
["gotze"] = "",
|
||||
["rikkert"] = "",
|
||||
["fire3231"] = "",
|
||||
["roghurricane"] = "",
|
||||
["ballbuster"] = "",
|
||||
["shimmshamm"] = "",
|
||||
["procrastinator_diedz"] = "",
|
||||
["legionmammal978"] = "",
|
||||
["merssedes"] = "",
|
||||
["passepartout911"] = "",
|
||||
["arizon"] = "",
|
||||
["settdigger"] = "",
|
||||
["m_m0"] = "",
|
||||
["spatbee"] = "",
|
||||
["forge36"] = "",
|
||||
["fynko"] = "",
|
||||
["i-make-robots"] = "",
|
||||
["chunhung"] = "",
|
||||
["apolomir"] = "",
|
||||
["grandstore256"] = "",
|
||||
["zehir"] = "",
|
||||
["shaun_das_schaf"] = "",
|
||||
["crisbk"] = "",
|
||||
["kev007"] = "",
|
||||
["sonopard"] = "",
|
||||
["li7ro"] = "",
|
||||
["rascher"] = "",
|
||||
["sangria_louie"] = "",
|
||||
["toledini"] = "",
|
||||
["moo_cowman"] = "",
|
||||
["lord_kill"] = "",
|
||||
["mithril_ryder"] = "",
|
||||
["grahamm"] = "",
|
||||
["luk4kasz"] = "",
|
||||
["joe32"] = "",
|
||||
["assemblystorm"] = "",
|
||||
["adobewallhacks"] = "",
|
||||
["bufferoverflow"] = "",
|
||||
["mcschnee"] = "",
|
||||
["pirion"] = "",
|
||||
["xanting"] = "",
|
||||
["exp11235"] = "",
|
||||
["sharpshot2566"] = "",
|
||||
["coogan"] = "",
|
||||
["hazelnuthead"] = "",
|
||||
["pilypas"] = "",
|
||||
["zoigo"] = "",
|
||||
["ground_walker"] = "",
|
||||
["alvinmj"] = "",
|
||||
["spacecat-chan"] = "",
|
||||
["iexyi"] = "",
|
||||
["argetlam_elda"] = "",
|
||||
["swampd0nkey"] = "",
|
||||
["furancebob"] = "",
|
||||
["fish"] = "",
|
||||
["sovietdefender"] = "",
|
||||
["xaddr"] = "",
|
||||
["fana13"] = "",
|
||||
["vonlam999"] = "",
|
||||
["warnotte"] = "",
|
||||
["beriev"] = "",
|
||||
["zijkhal"] = "",
|
||||
["samy_the_samy"] = "",
|
||||
["bazul"] = "",
|
||||
["rickeyhb"] = "",
|
||||
["tigrium"] = "",
|
||||
["ansible32"] = "",
|
||||
["binzerle"] = "",
|
||||
["davoud"] = "",
|
||||
["copperbotte"] = "",
|
||||
["eaglesight"] = "",
|
||||
["fremiamagus"] = "",
|
||||
["struppi"] = "",
|
||||
["xatev"] = "",
|
||||
["xalpha1989"] = "",
|
||||
["jono777"] = "",
|
||||
["toof_kitty"] = "",
|
||||
["nekobaron"] = "",
|
||||
["empirebuilder1"] = "",
|
||||
["delta124"] = "",
|
||||
["lupigaming"] = "",
|
||||
["sergeant_steve"] = "",
|
||||
["wd_steve2"] = "",
|
||||
["teondar"] = "",
|
||||
["harmlessbeltbot"] = "",
|
||||
["noodletrains"] = "",
|
||||
["cmdrrat"] = "",
|
||||
["lunastarwarp"] = "",
|
||||
["brikir"] = "",
|
||||
["bobucles"] = "",
|
||||
["vincentmonster"] = "",
|
||||
["kingdud"] = "",
|
||||
["theelvengamer"] = "",
|
||||
["fuzz_pucker"] = "",
|
||||
["dichromium"] = "",
|
||||
["tuttifrectte"] = "",
|
||||
["xdihe"] = "",
|
||||
["circit"] = "",
|
||||
["bissi"] = "",
|
||||
["paul1998"] = "",
|
||||
["timmypwn"] = "",
|
||||
["pogomand"] = "",
|
||||
["stig219"] = "",
|
||||
["leviculus"] = "",
|
||||
["tommy17"] = ""
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
global.mods = {}
|
||||
global.regulars = {}
|
||||
global.regulars = require "resources.regulars"
|
||||
global.mods = require "resources.mods"
|
||||
|
||||
function update_group(position)
|
||||
local file = position .. ".lua"
|
||||
game.write_file(file, "{", false, 0)
|
||||
local group = global[position]
|
||||
local line = ""
|
||||
for player_name,_ in pairs(group) do
|
||||
for player_name, _ in pairs(group) do
|
||||
line = string.format('["%s"] = "",\n', player_name)
|
||||
game.write_file(file, line, true, 0)
|
||||
end
|
||||
@ -14,7 +14,9 @@ function update_group(position)
|
||||
end
|
||||
|
||||
function get_actor()
|
||||
if game.player then return game.player.name end
|
||||
if game.player then
|
||||
return game.player.name
|
||||
end
|
||||
return "<server>"
|
||||
end
|
||||
|
||||
@ -27,55 +29,61 @@ function is_regular(player_name)
|
||||
end
|
||||
|
||||
function add_regular(player_name)
|
||||
local actor = get_actor()
|
||||
if is_regular(player_name) then player_print(player_name .. " is already a regular.")
|
||||
else
|
||||
if game.players[player_name] then
|
||||
game.print(actor .. " promoted " .. player_name .. " to regular.")
|
||||
global.regulars[player_name:lower()] = ""
|
||||
update_group("regulars")
|
||||
else
|
||||
player_print(player_name .. " does not exist.")
|
||||
end
|
||||
end
|
||||
local actor = get_actor()
|
||||
if is_regular(player_name) then
|
||||
player_print(player_name .. " is already a regular.")
|
||||
else
|
||||
if game.players[player_name] then
|
||||
game.print(actor .. " promoted " .. player_name .. " to regular.")
|
||||
global.regulars[player_name:lower()] = ""
|
||||
update_group("regulars")
|
||||
else
|
||||
player_print(player_name .. " does not exist.")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function add_mod(player_name)
|
||||
local actor = get_actor()
|
||||
if is_mod(player_name) then player_print(player_name .. " is already a moderator.")
|
||||
else
|
||||
if game.players[player_name] then
|
||||
game.print(actor .. " promoted " .. player_name .. " to moderator.")
|
||||
global.mods[player_name:lower()] = ""
|
||||
update_group("mods")
|
||||
else
|
||||
player_print(player_name .. " does not exist.")
|
||||
end
|
||||
end
|
||||
local actor = get_actor()
|
||||
if is_mod(player_name) then
|
||||
player_print(player_name .. " is already a moderator.")
|
||||
else
|
||||
if game.players[player_name] then
|
||||
game.print(actor .. " promoted " .. player_name .. " to moderator.")
|
||||
global.mods[player_name:lower()] = ""
|
||||
update_group("mods")
|
||||
else
|
||||
player_print(player_name .. " does not exist.")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function remove_regular(player_name)
|
||||
local actor = get_actor()
|
||||
if is_regular(player_name) then game.print(player_name .. " was demoted from regular by " .. actor .. ".") end
|
||||
if is_regular(player_name) then
|
||||
game.print(player_name .. " was demoted from regular by " .. actor .. ".")
|
||||
end
|
||||
global.regulars[player_name] = nil
|
||||
update_group("regulars")
|
||||
end
|
||||
|
||||
function remove_mod(player_name)
|
||||
local actor = get_actor()
|
||||
if is_mod(player_name) then game.print(player_name .. " was demoted from mod by " .. actor .. ".") end
|
||||
if is_mod(player_name) then
|
||||
game.print(player_name .. " was demoted from mod by " .. actor .. ".")
|
||||
end
|
||||
global.mods[player_name] = nil
|
||||
update_group("mods")
|
||||
end
|
||||
|
||||
function print_regulars()
|
||||
for k,_ in pairs(global.regulars) do
|
||||
for k, _ in pairs(global.regulars) do
|
||||
player_print(k)
|
||||
end
|
||||
end
|
||||
|
||||
function print_mods()
|
||||
for k,_ in pairs(global.mods) do
|
||||
for k, _ in pairs(global.mods) do
|
||||
player_print(k)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user