Reserved player slots
#3
Sounds like a perfect job for the handshake hook which still isn't implemented yet! XD

The cProtocol::ParseHandshake() kicks the player when the server is full, but it should also call a hook.

Then you can create a plugin for this.
Return true when you want to override default behaviour. Returning true will not kick the player and allow the player to join.
If you want to override default behaviour and still kick the player (for whatever reason you have, banned player perhaps) you should manually kick the player in the plugin.

Return false for default behaviour, which means let the player join when there's enough room, and otherwise kick the player
Reply
Thanks given by:


Messages In This Thread
Reserved player slots - by Taugeshtu - 09-05-2012, 08:58 PM
RE: Reserved slots - by xoft - 09-05-2012, 09:10 PM
RE: Reserved player slots - by FakeTruth - 09-05-2012, 10:25 PM
RE: Reserved player slots - by Taugeshtu - 09-05-2012, 11:14 PM
RE: Reserved player slots - by FakeTruth - 09-05-2012, 11:27 PM
RE: Reserved player slots - by Taugeshtu - 09-05-2012, 11:43 PM
RE: Reserved player slots - by FakeTruth - 09-05-2012, 11:47 PM
RE: Reserved player slots - by FakeTruth - 09-06-2012, 06:33 AM



Users browsing this thread: 4 Guest(s)