1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-17 21:08:08 +02:00

Add everyone is regular option

This commit is contained in:
muppet9010 2019-02-10 16:51:30 -05:00 committed by Matthew Heguy
parent da678fb04a
commit 6281a8c49d
2 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,8 @@ global.config = {
},
-- time before a player gets the auto-trusted rank, allowing them access to the deconstructions planner, nukes, etc.
rank_system = {
time_for_trust = 3*60*60*60 -- 3 hours
time_for_trust = 3*60*60*60, -- 3 hours
everyone_is_regular = false
},
-- saves players' lives if they have a small-plane in their inventory, also adds the small-plane to the market and must therefor be loaded first
train_saviour = {

View File

@ -79,6 +79,8 @@ local function get_player_rank(player_name)
local player = game.players[player_name]
if player and player.valid and player.admin then
return Ranks.admin
elseif Config.everyone_is_regular then
return Ranks.regular
end
return player_ranks[player_name] or Ranks.guest