Broadcast message - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Broadcast message (/thread-2951.html) |
Broadcast message - nrgjrteherh435 - 05-18-2017 im trying to broadcast a message when an entity dies (yes i have the hook connected to the function bla bla) and i get an error when trying to execute my code: Code: function OnKilled(World) my error: Code: LUA: Plugins/CustomPlugin/CustomPlugin.lua:25: attempt to call method 'BroadcastChat' (a nil value) any help is greatly appreciated RE: Broadcast message - Mathias - 05-18-2017 This should work: Message when mobs and players die: Code: function OnKilled(Victim) Message when players die: Code: function OnKilled(Victim) |