Muqsit / InvMenu

A PocketMine-MP virion to create and manage virtual inventories!
https://poggit.pmmp.io/ci/Muqsit/InvMenu/~
GNU General Public License v3.0
201 stars 75 forks source link

class InvMenu not found #45

Closed RealAlyxMC closed 5 years ago

RealAlyxMC commented 5 years ago
class 'muqsit\invmenu\InvMenu' not found.

While i have the class:

use muqsit\invmenu\InvMenu;

the code on where the error occured is

        return InvMenu::create(InvMenu::TYPE_CHEST)
            ->setName("Trash Can")
            ->sessionize()
            ->setInventoryCloseListener(Trashcan::class . "::dispose");
Ifera commented 5 years ago

You need to use Devirion to load the classes

RealAlyxMC commented 5 years ago

How?

RealAlyxMC commented 5 years ago

I have Devirion

RealAlyxMC commented 5 years ago

Im new to virions

Muqsit commented 5 years ago

Read: https://github.com/poggit/support/blob/master/virion.md#testing-a-virion-or-plugin You can try the pmmp forums to get help with loading virions. There's actually already a solved thread stating this very issue: https://forums.pmmp.io/threads/invmenu.7303/#post-60484