diff --git a/mod/scripts/vscripts/killstat.nut b/mod/scripts/vscripts/killstat.nut index ec9f77c..717d62f 100644 --- a/mod/scripts/vscripts/killstat.nut +++ b/mod/scripts/vscripts/killstat.nut @@ -35,13 +35,15 @@ function killstat_Init() { AddCallback_OnClientConnected(JoinMessage) } +string prefix = "\x1b[38;5;81m[TONE API]\x1b[0m " + bool function hasCustomAirAccel(){ return Code_GetCurrentPlaylistVarOrUseValue("custom_air_accel_pilot", "null") != "null" } void function JoinMessage(entity player) { - //Chat_ServerPrivateMessage(player, killstat_prefix + "This server collects data using the Tone API. Check your data here: \x1b[34mtoneapi.com/" + player.GetPlayerName()+ "\x1b[0m", false, false) - Chat_ServerPrivateMessage(player, killstat_prefix + "This server collects data using the WIP Tone API. View statistics at https://toneapi.github.io/ToneAPI_webclient/", false, false) + //Chat_ServerPrivateMessage(player, prefix + "This server collects data using the Tone API. Check your data here: \x1b[34mtoneapi.com/" + player.GetPlayerName()+ "\x1b[0m", false, false) + Chat_ServerPrivateMessage(player, prefix + "This server collects data using the WIP Tone API. View statistics at https://toneapi.github.io/ToneAPI_webclient/", false, false) } void @@ -274,6 +276,11 @@ var function GetTitan(entity player) { return null } +void +function Log(string s) { + print(prefix + s) +} + void function Tone_Test_Auth() { HttpRequest request diff --git a/mod/scripts/vscripts/killstat_shared.nut b/mod/scripts/vscripts/killstat_shared.nut deleted file mode 100644 index d4c2e98..0000000 --- a/mod/scripts/vscripts/killstat_shared.nut +++ /dev/null @@ -1,7 +0,0 @@ -globalize_all_functions - -global string killstat_prefix = "\x1b[38;5;81m[TONE API]\x1b[0m " - -void function Log(string s) { - print(killstat_prefix + s) -} \ No newline at end of file