From 8d40970f98b08ce51655d55ad37c54ed748c6c53 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 13 Nov 2020 18:42:27 +0000 Subject: [PATCH] Resource name server console error message If the resource's name is not wk_wars2x, then the server console will receive an error. --- sv_version_check.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sv_version_check.lua b/sv_version_check.lua index b6db618..e3c8218 100644 --- a/sv_version_check.lua +++ b/sv_version_check.lua @@ -75,4 +75,9 @@ PerformHttpRequest( "https://wolfknight98.github.io/wk_wars2x_web/version.txt", -- In case the version can not be requested, print out an error message print( " || ^1There was an error getting the latest version information, if the issue persists contact WolfKnight#8586 on Discord.\n^0 ||\n \\\\\n" ) end + + -- Warn the console if the resource has been renamed, as this will cause issues with the resource's functionality. + if ( GetCurrentResourceName() ~= "wk_wars2x" ) then + print( "^1ERROR: Resource name is not wk_wars2x, expect there to be issues with the resource. To ensure there are no issues, please leave the resource name as wk_wars2x^0\n\n" ) + end end ) \ No newline at end of file