Isn't it possible to make the StringLenToASCII function dynamic?
Or does it really matter because BungeeCord doesn't support longer or something?
function StringLenToASCII(a_Player, a_String)
local template = ("return \0\%s"):format(a_String:len())
local loader = loadstring(template);
-- Sandbox the loader
setfenv(loader, {});
local succes, res = pcall(loader)
if (not succes) then
LOG("The server name is incompatible with this plugin! Please make sure it is 30 characters or less!");
Player:SendMessageFailure("The server name is incompatible with this plugin! Please make sure it is 30 characters or less!");
return false;
else
return res;
end
end
Or does it really matter because BungeeCord doesn't support longer or something?

