For some reason I can't add hooks. I get these errors: with this code:
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
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 compassBut it is fixed when I add
function OnPlayerBreakingBlock() end function OnPlayerRightClick() end function OnPlayerLeftClick() end