mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Made bans automatically show the address for the appeal forum, if set in config.
This commit is contained in:
@@ -71,6 +71,8 @@
|
||||
var/revival_brain_life = -1
|
||||
var/require_heads_alive = 0 //For Rev.
|
||||
|
||||
var/appeal_address = ""
|
||||
|
||||
/datum/configuration/New()
|
||||
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
||||
for (var/T in L)
|
||||
@@ -291,6 +293,9 @@
|
||||
if("require_heads_alive")
|
||||
config.require_heads_alive = value
|
||||
|
||||
if("appeal_address")
|
||||
config.appeal_address = value
|
||||
|
||||
else
|
||||
diary << "Unknown setting in configuration: '[name]'"
|
||||
|
||||
|
||||
@@ -711,7 +711,7 @@
|
||||
if (isbanned)
|
||||
log_access("Failed Login: [src] - Banned")
|
||||
message_admins("\blue Failed Login: [src] - Banned")
|
||||
alert(src,"You have been banned.\nReason : [isbanned]","Ban","Ok")
|
||||
alert(src,"You have been banned.\nReason : [isbanned][config.appeal_address ? "\nYou may appeal this at [config.appeal_address]" : ""]","Ban","Ok")
|
||||
del(src)
|
||||
|
||||
/*
|
||||
|
||||
+4
-1
@@ -111,4 +111,7 @@ GUEST_JOBBAN 1
|
||||
# FEATURE_OBJECT_SPELL_SYSTEM
|
||||
|
||||
##Toggle for having jobs load up from the .txt
|
||||
# LOAD_JOBS_FROM_TXT
|
||||
# LOAD_JOBS_FROM_TXT
|
||||
|
||||
##What address should banned people appeal ther ban at? Remember to escape the characters, if needed!
|
||||
# APPEAL_ADDRESS -->APPEAL ADDRESS HERE<--
|
||||
Reference in New Issue
Block a user