Plugin folder vs plugin name
#8
	if cPluginManager:Get():IsPluginLoaded("Core") then
		cPluginManager:DoWithPlugin("Core",
			function (PluginHandle)
				if PluginHandle:GetVersion() >= 15 then
					if cPluginManager:CallPlugin("Core", "AddWebChatCallback", "IRChat", "OnWebChat") == true then
						HookedIntoCore = true
						LOG("[IRChat] Hooked into Core")
					else 
						HookingError("Core", 1, "CallPlugin didn't return true", "Web endpoint will be unavialable")
					end
				else
					HookingError("Core", 2, "Your Core is outdated, the minimum version is 15", "Web endpoint will be unavialable")
				end
			end
		)
	else
		HookingError("Core", 3, "Core not found", "Web endpoint will be unavialable")
	end

This doesn't really work. (I'm using for each plugin as a workaround atm)
Code:
[13:08:24] LUA: Plugins/IRChat/Hooks.lua:10: attempt to call method 'DoWithPlugin' (a nil value)
[13:08:24] Stack trace:
[13:08:24]   Plugins/IRChat/Hooks.lua(10): (no name)
[13:08:24] Stack trace end
[13:08:24] Error in plugin IRChat calling function <callback>()
Reply
Thanks given by:


Messages In This Thread
Plugin folder vs plugin name - by xoft - 04-17-2015, 09:19 PM
RE: Plugin folder vs plugin name - by NiLSPACE - 04-17-2015, 09:21 PM
RE: Plugin folder vs plugin name - by tigerw - 04-18-2015, 09:18 AM
RE: Plugin folder vs plugin name - by xoft - 04-18-2015, 09:24 PM
RE: Plugin folder vs plugin name - by xoft - 04-19-2015, 07:25 PM
RE: Plugin folder vs plugin name - by jan64 - 04-23-2015, 08:55 PM
RE: Plugin folder vs plugin name - by NiLSPACE - 04-23-2015, 08:59 PM
RE: Plugin folder vs plugin name - by jan64 - 04-23-2015, 09:11 PM
RE: Plugin folder vs plugin name - by NiLSPACE - 04-23-2015, 09:41 PM
RE: Plugin folder vs plugin name - by xoft - 04-24-2015, 02:51 AM
RE: Plugin folder vs plugin name - by xoft - 04-24-2015, 03:42 AM



Users browsing this thread: 2 Guest(s)