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:
parent
da678fb04a
commit
6281a8c49d
@ -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 = {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user