-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 12 additions & 1 deletion
13
monkestation/code/controllers/configuration/configuration.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
5 changes: 5 additions & 0 deletions
5
monkestation/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters