Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
Brain-dawg committed Jan 22, 2025
1 parent 3fcd52f commit f1ddeab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mge/mge.nut
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ foreach (sound in StockSounds)
::Arenas <- {}
::Arenas_List <- [] // Need ordered arenas for selection with client commands like !add

local hostname = Convars.GetStr("hostname")
local local_time = {}
LocalTime(local_time)
::SERVER_DATA <- {
Expand All @@ -84,7 +83,7 @@ LocalTime(local_time)
players_max = MaxClients().tointeger()
players_red = 0
region = ""
server_name = hostname
server_name = ""
status = "Waiting for players"
update_time = {
year = local_time.year
Expand All @@ -100,6 +99,7 @@ LocalTime(local_time)

EntFire("worldspawn", "RunScriptCode", @"
local hostname = Convars.GetStr(`hostname`)
local _split = split(hostname, `#`)
local _split_region = _split.len() == 1 ? [``, `]`] : split(_split[1], `[`)
SERVER_DATA.server_name = Convars.GetStr(`hostname`)
Expand Down

0 comments on commit f1ddeab

Please sign in to comment.