Player quit event
#1
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
Reply
Thanks given by:
#2
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?
Reply
Thanks given by:
#3
http://mc-server.xoft.cz/LuaAPI/OnDisconnect.html
http://mc-server.xoft.cz/LuaAPI/OnPlayerDestroyed.html
Reply
Thanks given by:
#4
OnPlayerDestroyed is the best AFAIK.
Reply
Thanks given by:
#5
Return true for OnPlayerDestroyed to cancel leave message. Why do you want a custom leave message though?
Reply
Thanks given by:
#6
(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? Smile When I had a bukkit server like 1.5/2 years back I hated the join and leave message so I replaced them Smile
Reply
Thanks given by:
#7
What were they?
Reply
Thanks given by:
#8
Just the vanilla STR_Warrior has joined the game. But it didn't look good with the server spawn and the welcome messages.
Reply
Thanks given by:
#9
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.
Reply
Thanks given by:
#10
You sure you're returning true for the player destroyed hook? Disconnect definitely won't do anything.
Reply
Thanks given by:




Users browsing this thread: 8 Guest(s)