mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
upstream-merge-16484 [MDB IGNORE] (#9289)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -3,15 +3,15 @@
|
||||
set name = "wiki"
|
||||
set desc = "Type what you want to know about. This will open the wiki on your web browser."
|
||||
set category = "OOC.Resources" //CHOMPEdit
|
||||
if(CONFIG_GET(string/wikiurl)) // CHOMPEdit
|
||||
if(CONFIG_GET(string/wikiurl))
|
||||
if(query)
|
||||
if(CONFIG_GET(string/wikisearchurl)) // CHOMPEdit
|
||||
var/output = replacetext(CONFIG_GET(string/wikisearchurl), "%s", url_encode(query)) // CHOMPEdit
|
||||
if(CONFIG_GET(string/wikisearchurl))
|
||||
var/output = replacetext(CONFIG_GET(string/wikisearchurl), "%s", url_encode(query))
|
||||
src << link(output)
|
||||
else
|
||||
to_chat(src, span_warning(" The wiki search URL is not set in the server configuration."))
|
||||
else
|
||||
src << link(CONFIG_GET(string/wikiurl)) // CHOMPEdit
|
||||
src << link(CONFIG_GET(string/wikiurl))
|
||||
else
|
||||
to_chat(src, span_warning("The wiki URL is not set in the server configuration."))
|
||||
return
|
||||
@@ -20,10 +20,10 @@
|
||||
set name = "forum"
|
||||
set desc = "Visit the forum."
|
||||
set hidden = 1
|
||||
if(CONFIG_GET(string/forumurl)) // CHOMPEdit
|
||||
if(CONFIG_GET(string/forumurl))
|
||||
if(tgui_alert(usr, "This will open the forum in your browser. Are you sure?","Visit Website",list("Yes","No")) != "Yes")
|
||||
return
|
||||
src << link(CONFIG_GET(string/forumurl)) // CHOMPEdit
|
||||
src << link(CONFIG_GET(string/forumurl))
|
||||
else
|
||||
to_chat(src, span_warning("The forum URL is not set in the server configuration."))
|
||||
return
|
||||
@@ -33,10 +33,10 @@
|
||||
set desc = "Show Server Rules."
|
||||
set hidden = 1
|
||||
|
||||
if(CONFIG_GET(string/rulesurl)) // CHOMPEdit
|
||||
if(CONFIG_GET(string/rulesurl))
|
||||
if(tgui_alert(usr, "This will open the rules in your browser. Are you sure?","Visit Website",list("Yes","No")) != "Yes")
|
||||
return
|
||||
src << link(CONFIG_GET(string/rulesurl)) // CHOMPEdit
|
||||
src << link(CONFIG_GET(string/rulesurl))
|
||||
else
|
||||
to_chat(src, span_danger("The rules URL is not set in the server configuration."))
|
||||
return
|
||||
@@ -46,10 +46,10 @@
|
||||
set desc = "See the map."
|
||||
set hidden = 1
|
||||
|
||||
if(CONFIG_GET(string/mapurl)) // CHOMPEdit
|
||||
if(CONFIG_GET(string/mapurl))
|
||||
if(tgui_alert(usr, "This will open the map in your browser. Are you sure?","Visit Website",list("Yes","No")) != "Yes")
|
||||
return
|
||||
src << link(CONFIG_GET(string/mapurl)) // CHOMPEdit
|
||||
src << link(CONFIG_GET(string/mapurl))
|
||||
else
|
||||
to_chat(src, span_danger("The map URL is not set in the server configuration."))
|
||||
return
|
||||
@@ -59,10 +59,10 @@
|
||||
set desc = "Visit the GitHub"
|
||||
set hidden = 1
|
||||
|
||||
if(CONFIG_GET(string/githuburl)) // CHOMPEdit
|
||||
if(CONFIG_GET(string/githuburl))
|
||||
if(tgui_alert(usr, "This will open the GitHub in your browser. Are you sure?","Visit Website",list("Yes","No")) != "Yes")
|
||||
return
|
||||
src << link(CONFIG_GET(string/githuburl)) // CHOMPEdit
|
||||
src << link(CONFIG_GET(string/githuburl))
|
||||
else
|
||||
to_chat(src, span_danger("The GitHub URL is not set in the server configuration."))
|
||||
return
|
||||
@@ -72,10 +72,10 @@
|
||||
set desc = "Visit the discord"
|
||||
set hidden = 1
|
||||
|
||||
if(CONFIG_GET(string/discordurl)) // CHOMPEdit
|
||||
if(CONFIG_GET(string/discordurl))
|
||||
if(tgui_alert(usr, "This will open the Discord in your browser. Are you sure?","Visit Website",list("Yes","No")) != "Yes")
|
||||
return
|
||||
src << link(CONFIG_GET(string/discordurl)) // CHOMPEdit
|
||||
src << link(CONFIG_GET(string/discordurl))
|
||||
else
|
||||
to_chat(src, span_danger("The Discord URL is not set in the server configuration."))
|
||||
return
|
||||
@@ -85,10 +85,10 @@
|
||||
set desc = "Visit the patreon"
|
||||
set hidden = 1
|
||||
|
||||
if(CONFIG_GET(string/patreonurl)) // CHOMPEdit
|
||||
if(CONFIG_GET(string/patreonurl))
|
||||
if(tgui_alert(usr, "This will open the Patreon in your browser. Are you sure?","Visit Website",list("Yes","No")) != "Yes")
|
||||
return
|
||||
src << link(CONFIG_GET(string/patreonurl)) // CHOMPEdit
|
||||
src << link(CONFIG_GET(string/patreonurl))
|
||||
else
|
||||
to_chat(src, span_danger("The Patreon URL is not set in the server configuration."))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user