Attempting to get Bungeecord Teleportation Functional
#11
Isn't it possible to make the StringLenToASCII function dynamic?
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?
Reply
Thanks given by:


Messages In This Thread
RE: Attempting to get Bungeecord Teleportation Functional - by NiLSPACE - 10-22-2015, 04:50 PM



Users browsing this thread: 1 Guest(s)