Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [17:20:06] [Server thread/CRITICAL]: Unhandled exception executing command 'gay' in gay: Class 'muqsit\invmenu\InvMenu' not found
- [17:20:06] [Server thread/CRITICAL]: Error: "Class 'muqsit\invmenu\InvMenu' not found" (EXCEPTION) in "fa/src/xd/Main" at line 30
- namespace xd;
- use muqsit\invmenu\InvMenu;
- use pocketmine\command\Command;
- use pocketmine\command\CommandSender;
- use pocketmine\event\Listener;
- use pocketmine\item\Item;
- use pocketmine\Player;
- use pocketmine\plugin\PluginBase;
- class Main extends PluginBase implements Listener
- {
- public function onEnable(){
- $this->getServer()->getPluginManager()->registerEvents($this, $this);
- $this->getLogger()->info("gay");
- }
- public function onCommand(CommandSender $sender, Command $command, $label, array $args): bool {
- if($command->getName() == "gay"){
- $menu =InvMenu::create(InvMenu::TYPE_HOPPER);
- $menu->getInventory()->setContents([
- Item::get(2),
- Item::get(2)
- ]);
- $menu->getInventory()->addItem(Item::get(2));
- /** @var Player $player */
- $menu->send($sender);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement