Player quit event - 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: Player quit event (/thread-1362.html) |
Player quit event - azteca1998 - 02-10-2014 Hello, I was wondering if it was a HOOK_PLAYER_QUIT event or something similar. I've seen HOOK_QUIT, but it isn't useful for me. I want to change the quit message to another defined in a .ini file. With HOOK_QUIT, my custom quit message is shown, but the default one is also shown! Sincerely, azteca1998 RE: Player quit event - SamJBarney - 02-10-2014 I believe HOOK_PLAYER_DISCONNECT is what you are looking for. Though I don't know if that has been implemented yet. Can someone verify what I've said? RE: Player quit event - tonibm19 - 02-10-2014 http://mc-server.xoft.cz/LuaAPI/OnDisconnect.html http://mc-server.xoft.cz/LuaAPI/OnPlayerDestroyed.html RE: Player quit event - bearbin - 02-10-2014 OnPlayerDestroyed is the best AFAIK. RE: Player quit event - tigerw - 02-11-2014 Return true for OnPlayerDestroyed to cancel leave message. Why do you want a custom leave message though? RE: Player quit event - NiLSPACE - 02-11-2014 (02-11-2014, 04:08 AM)tigerw Wrote: Return true for OnPlayerDestroyed to cancel leave message. Why do you want a custom leave message though? Because why not? When I had a bukkit server like 1.5/2 years back I hated the join and leave message so I replaced them RE: Player quit event - tigerw - 02-11-2014 What were they? RE: Player quit event - NiLSPACE - 02-11-2014 Just the vanilla STR_Warrior has joined the game. But it didn't look good with the server spawn and the welcome messages. RE: Player quit event - azteca1998 - 02-11-2014 Well, I want to change/remove the messages because of the "style" of my server. Neither HOOK_PLAYER_DESTROYED nor HOOK_DISCONNECT can hide the logout message. RE: Player quit event - tigerw - 02-12-2014 You sure you're returning true for the player destroyed hook? Disconnect definitely won't do anything. |