The following warnings occurred:
Warning [2] Trying to access array offset on null - Line: 198 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 198 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined property: DB_MySQLi::$google_seo_query_limit - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Decrement on type null has no effect, this will change in the next major version of PHP - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined variable $r1comma - Line: 444 - File: inc/plugins/thx.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/thx.php 444 errorHandler->error_callback
/inc/plugins/thx.php 280 build_thank
/inc/class_plugins.php 142 thx
/inc/functions_post.php 936 pluginSystem->run_hooks
/showthread.php 1122 build_postbit
Warning [2] Undefined variable $entries - Line: 444 - File: inc/plugins/thx.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/thx.php 444 errorHandler->error_callback
/inc/plugins/thx.php 280 build_thank
/inc/class_plugins.php 142 thx
/inc/functions_post.php 936 pluginSystem->run_hooks
/showthread.php 1122 build_postbit




Can I refuse clients of old versions to log in the server?
#1
I don't want clients of old versions to log in the server. In other word, I only want clients of specific version to log in it.

Can I modify config file to do it? Or I have to rewrite code or write a plugin?

PS: My English is not so good, so please forgive me for the bad grammar. Thank you.Smile
Reply
Thanks given by:
#2
I already made a plugin for that, but I didn't create a thread for it so that's why you couldn't find one. Here it is: https://forum.cuberite.org/attachment.php?aid=434
Reply
Thanks given by: pdl
#3
(06-20-2014, 02:06 AM)STR_Warrior Wrote: I already made a plugin for that, but I didn't create a thread for it so that's why you couldn't find one. Here it is: https://forum.cuberite.org/attachment.php?aid=434

I used to believe that I can get procotol version from HOOK_HANDSHAKE, so I could not make a plugin to do it. Thank you for tell me how to do it.
Reply
Thanks given by:
#4
We have a hook called OnLogin that gives the information about the protocol. I do have to mention that you can return true with the OnLogin hook to block the player from logging in, but I didn't do that in my plugin because I wanted a customizable kick message.
Reply
Thanks given by:




Users browsing this thread: