diff --git a/config.lua b/config.lua index cf11fbeb..ddfe18b4 100644 --- a/config.lua +++ b/config.lua @@ -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 = { diff --git a/features/rank_system.lua b/features/rank_system.lua index f2da7f1b..be9e7118 100644 --- a/features/rank_system.lua +++ b/features/rank_system.lua @@ -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