Guys I have a FANTASTIC Server and I'm still working on...when people join they usually get a kit...but for ops the kits that are given when a player joins just spams are chat...is there a way to hide those console messages?!?
Means you give the items using a command -> Bad Practice. You should use Inventory::addItem(), Inventory::setItem(), etc.
You probably have GrabBag installed? It broadcasts a lot of console messages when commands are used... You can turn it off in the config I believe.
Why post in the 'Plugin Development' section if you dont know how to code? This section is for sharing snippets and helping others with their plugin development
PHP: public function onJoin(PlayerJoinEvent $event) { $event->getPlayer()->getInventory()->addItem(Item::get($id, $meta, $amount)); }
If there is an echo{ // it would broadcast a message just remove the echo so it won't appear as a global message
echo sends the message to console, not to broadcast it. Remember that PocketMine is just run in PHP using CLI, and it is not really possible to modify the use of echo. (There is an ob_start() functino, but PocketMine doesn't use it at all)
echo is first thing that you learn in php so i dont see any other reason why you tought about it first.