Skip to content

Commit

Permalink
okay this works lets do it NYOOOM
Browse files Browse the repository at this point in the history
  • Loading branch information
flleeppyy committed Nov 24, 2024
1 parent 95ff07a commit 99e5833
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
13 changes: 12 additions & 1 deletion monkestation/code/controllers/configuration/configuration.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
/datum/controller/configuration/LoadMOTD()
. = ..()

if (text2num(rustg_unix_timestamp()) < 1736064000)
var/cur_day = text2num(time2text(world.realtime, "DD", "PT"))
var/cur_mon = text2num(time2text(world.realtime, "MM", "PT"))
var/cur_year = text2num(time2text(world.realtime, "YYYY", "PT"))

if (!compare_dates(cur_year, cur_mon, cur_day, 2025, 1, 5))
motd = motd + "[motd]<br>" + "<span class='red big'>Monkestation admins are <span class='bold'>NO LONGER</span> accepting appeals for permanent bans until <span class='notice'>January 5th, 2025</span></span><br><hr><span class='yellowteamradio big'>Any permanent ban appeals made before said date will be <span class='bold red'>AUTOMATICALLY DENIED!</span></span><br><span class='big notice'>So don't get caught doing something stupid, ya hear?</span>"

/proc/compare_dates(year1, month1, day1, year2, month2, day2)
// TRUE if date1 >= date2, FALSE if date1 < date2
var/comparable_date1 = year1 * 10000 + month1 * 100 + day1
var/comparable_date2 = year2 * 10000 + month2 * 100 + day2

return comparable_date1 >= comparable_date2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/proc/_floor(a)
return floor(a)

/proc/_ceil(a)
return ceil(a)
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6148,6 +6148,7 @@
#include "monkestation\code\modules\admin\verbs\spawn_mixtape.dm"
#include "monkestation\code\modules\admin\verbs\tracy.dm"
#include "monkestation\code\modules\admin\verbs\traits.dm"
#include "monkestation\code\modules\admin\verbs\SDQL2\SDQL_2_wrappers.dm"
#include "monkestation\code\modules\aesthetics\airlock\airlock.dm"
#include "monkestation\code\modules\aesthetics\items\clothing.dm"
#include "monkestation\code\modules\aesthetics\mapping\tilecoloring.dm"
Expand Down

0 comments on commit 99e5833

Please sign in to comment.