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




Core: Any way to choose which items that can be given?
#1
Hi!
In the Core-plugin, there are two handy commands, /item and /give, which you can use to spawn in items. However, is there a way to choose which items that can be given with those commands, or make an item id return an "Unknown item id" message? When I tried to give myself some technical blocks in 1.7 (for example the Bed Block, ID 26), my client crashed, as you can't have technical blocks in your inventory anymore since 1.7.

The reason why I'm asking this is because I allow players on my server to give themselves items. Some of these players may try to get these technical blocks, without knowing that their client will crash.
Reply
Thanks given by:
#2
You'd have to modify the core code.
Reply
Thanks given by:
#3
I recommend opening an issue in the GitHub tracker for the Core with a feature request for this.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)