Poll: Change the API?
You do not have permission to vote in this poll.
Yes, break all the plugins
85.71%
6 85.71%
No, keep it as is
14.29%
1 14.29%
Total 7 vote(s) 100%
* You voted for this item. [Show Results]

API change in hook-adding
#13
For some reason I can't add hooks. I get these errors:
Code:
[12:29:30] Plugin WorldEdit wants to add a hook (19), but it doesn't provide the callback function "OnPlayerBreakingBlock" for it. The plugin need not work properly.
[12:29:30] Stack trace:
[12:29:30]   [C](-1): AddHook
[12:29:30]   Plugins/WorldEdit/main.lua(13): ?
[12:29:30] Stack trace end
[12:29:30] Plugin WorldEdit wants to add a hook (27), but it doesn't provide the callback function "OnPlayerRightClick" for it. The plugin need not work properly.
[12:29:30] Stack trace:
[12:29:30]   [C](-1): AddHook
[12:29:30]   Plugins/WorldEdit/main.lua(14): ?
[12:29:30] Stack trace end
[12:29:30] Plugin WorldEdit wants to add a hook (27), but it doesn't provide the callback function "OnPlayerRightClick" for it. The plugin need not work properly.
[12:29:30] Stack trace:
[12:29:30]   [C](-1): AddHook
[12:29:30]   Plugins/WorldEdit/main.lua(16): ?
[12:29:30] Stack trace end
[12:29:30] Plugin WorldEdit wants to add a hook (27), but it doesn't provide the callback function "OnPlayerRightClick" for it. The plugin need not work properly.
[12:29:30] Stack trace:
[12:29:30]   [C](-1): AddHook
[12:29:30]   Plugins/WorldEdit/main.lua(17): ?
[12:29:30] Stack trace end
[12:29:30] Plugin WorldEdit wants to add a hook (23), but it doesn't provide the callback function "OnPlayerLeftClick" for it. The plugin need not work properly.
[12:29:30] Stack trace:
[12:29:30]   [C](-1): AddHook
[12:29:30]   Plugins/WorldEdit/main.lua(19): ?
[12:29:30] Stack trace end
[12:29:30] Plugin WorldEdit wants to add a hook (23), but it doesn't provide the callback function "OnPlayerLeftClick" for it. The plugin need not work properly.
[12:29:30] Stack trace:
[12:29:30]   [C](-1): AddHook
[12:29:30]   Plugins/WorldEdit/main.lua(20): ?
[12:29:30] Stack trace end
with this code:
	
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_BREAKING_BLOCK, SelectFirstPointHook); -- Add hook that gets called when selecting the first point.
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_RIGHT_CLICK,    SelectSecondPointHook);
	
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_RIGHT_CLICK,    RightClickCompassHook);
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_RIGHT_CLICK,    ToolsHook);
	
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_LEFT_CLICK,     LeftClickCompassHook); -- Add hook OnPlayerLeftClick
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_LEFT_CLICK,     SuperPickaxeHook);
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_JOINED,         OnPlayerJoined); -- Add hook OnPlayerJoined
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_ANIMATION,      OnPlayerAnimation); -- Add hook OnPlayerAnimation for left click compass
But it is fixed when I add
function OnPlayerBreakingBlock()
end
function OnPlayerRightClick()
end
function OnPlayerLeftClick()
end
Reply
Thanks given by:


Messages In This Thread
API change in hook-adding - by xoft - 08-21-2013, 11:00 PM
RE: API change in hook-adding - by NiLSPACE - 08-21-2013, 11:29 PM
RE: API change in hook-adding - by FakeTruth - 08-21-2013, 11:52 PM
RE: API change in hook-adding - by xoft - 08-22-2013, 12:27 AM
RE: API change in hook-adding - by FakeTruth - 08-22-2013, 12:30 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 12:31 AM
RE: API change in hook-adding - by bearbin - 08-22-2013, 12:34 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 12:37 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 05:36 AM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 05:51 AM
RE: API change in hook-adding - by bearbin - 08-22-2013, 05:54 AM
RE: API change in hook-adding - by xoft - 08-22-2013, 05:54 AM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 08:09 PM
RE: API change in hook-adding - by xoft - 08-22-2013, 09:42 PM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 11:27 PM
RE: API change in hook-adding - by bearbin - 08-22-2013, 11:33 PM
RE: API change in hook-adding - by NiLSPACE - 08-22-2013, 11:41 PM
RE: API change in hook-adding - by xoft - 08-22-2013, 11:43 PM
RE: API change in hook-adding - by xoft - 08-23-2013, 04:27 AM
RE: API change in hook-adding - by tonibm19 - 10-20-2013, 11:26 PM
RE: API change in hook-adding - by tigerw - 10-21-2013, 03:37 AM
RE: API change in hook-adding - by bearbin - 10-21-2013, 05:30 AM
RE: API change in hook-adding - by xoft - 10-21-2013, 07:19 AM



Users browsing this thread: 1 Guest(s)