How to male chest gui?

Discussion in 'Plugin Help' started by NutXzG, Jan 3, 2020.

  1. NutXzG

    NutXzG Slime

    Messages:
    80
    GitHub:
    NutXzG
    I use Inv-Menu to make gui chest, I can't not write gui (I bad English)
     
  2. ZackyVN

    ZackyVN Baby Zombie

    Messages:
    151
    HimbeersaftLP likes this.
  3. NutXzG

    NutXzG Slime

    Messages:
    80
    GitHub:
    NutXzG
    Example code is work??
    PHP:

                 
    public function __construct(){
                        
    $menu =  InvMenu::create(InvMenu::TYPE_CHEST)
                ->
    readonly()
                ->
    setName("Admin - Tools")
                ->
    setListener([$this"handleMenuSelection"])
    - >
    setInventoryCloseListener(function(Player $player) : void{
                          
    $player->sendMessage(TextFormat::GREEN "ลาก่อนนะครับ,");
                       });
                       
    $inv $menu->getInventory();
    $item Item::get(368);
    $item->setCustomName("Teleport World");
    $inv->setItem(1$item);
                    }
    public function 
    handleMenuSelection(Player $pItem $itemClicked){
        if(
    $itemClicked->getId() === Item::get(368)){
            
    $this->Form($p);
        }
        return 
    true;
    }

     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,382
    GitHub:
    HimbeersaftLP
    Just try it?!
     
  5. NutXzG

    NutXzG Slime

    Messages:
    80
    GitHub:
    NutXzG
    Eorror
    [10:36:43] [Server thread/INFO]: Loading pocketmine.yml...

    [10:36:43] [Server thread/INFO]: Loading server properties...

    [10:36:43] [Server thread/INFO]: เลือก ภาษาอังกฤษ (tha) ภาษามาตรฐาน

    [10:36:43] [Server thread/INFO]: Starting Minecraft: Bedrock Edition server version v1.14.0

    [10:36:43] [Server thread/WARNING]: Online mode is disabled. The server will not verify that players are authenticated to Xbox Live.

    [10:36:43] [Server thread/WARNING]: While this makes it possible to connect without internet access, it also allows hackers to connect with any username they choose.

    [10:36:43] [Server thread/WARNING]: To enable authentication, set "xbox-auth" to "true" in server.properties.

    [10:36:43] [Server thread/INFO]: Opening server on 0.0.0.0:41782

    [10:36:43] [Server thread/INFO]: This server is running PocketMine-MP version 3.11.3

    [10:36:43] [Server thread/INFO]: PocketMine-MP is distributed under the LGPL License

    [10:36:43] [Server thread/INFO]: Loading resource packs...

    [10:36:43] [Server thread/ERROR]: Could not load plugin 'iProtector': Incompatible API version (plugin requires one of: 3.0.0-ALPHA7, 3.0.0-ALPHA8, 3.0.0-ALPHA9, 3.0.0-ALPHA10, 3.0.0-ALPHA11)

    [10:36:43] [Server thread/INFO]: Loading SimpleAuth v2.1.3

    [10:36:43] [Server thread/INFO]: Loading EconomyAPI v5.7.2

    [10:36:43] [Server thread/INFO]: Loading DevTools v1.13.0

    [10:36:43] [Server thread/INFO]: Loading FormAPI v1.3.0

    [10:36:43] [Server thread/INFO]: Loading AuthUI v1.0.0

    [10:36:43] [Server thread/INFO]: Loading MultiWorld v1.5.1

    [10:36:43] [Server thread/INFO]: Enabling SimpleAuth v2.1.3

    [10:36:43] [Server thread/INFO]: [SimpleAuth] Everything loaded!

    [10:36:43] [Server thread/INFO]: Enabling DevTools v1.13.0

    [10:36:43] [Server thread/ERROR]: Could not load plugin 'AuthUI': plugin exists

    [10:36:43] [Server thread/INFO]: Loading AdminTools v1

    [10:36:43] [Server thread/CRITICAL]: ParseError: "syntax error, unexpected 'public' (T_PUBLIC)" (EXCEPTION) in "plugins/AdminTools/src/AdminTools/Loader" at line 21

    [10:36:43] [Server thread/DEBUG]: #0 (): BaseClassLoader->loadClass(string[17] AdminTools\Loader)

    [10:36:43] [Server thread/DEBUG]: #1 (): spl_autoload_call(string[17] AdminTools\Loader)

    [10:36:43] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginManager(181): class_exists(string[17] AdminTools\Loader, boolean 1)

    [10:36:43] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(352): pocketmine\plugin\PluginManager->loadPlugin(string[33] /home/gs-41782/plugins/AdminTools, array[1])

    [10:36:43] [Server thread/DEBUG]: #4 plugins/PocketMine-DevTools.phar/src/DevTools/DevTools(49): pocketmine\plugin\PluginManager->loadPlugins(string[23] /home/gs-41782/plugins/, array[1])

    [10:36:43] [Server thread/DEBUG]: #5 src/pocketmine/plugin/PluginBase(123): DevTools\DevTools->onEnable()

    [10:36:43] [Server thread/DEBUG]: #6 src/pocketmine/plugin/PluginManager(581): pocketmine\plugin\PluginBase->setEnabled(boolean 1)

    [10:36:43] [Server thread/DEBUG]: #7 src/pocketmine/Server(1999): pocketmine\plugin\PluginManager->enablePlugin(object DevTools\DevTools)

    [10:36:43] [Server thread/DEBUG]: #8 src/pocketmine/Server(1985): pocketmine\Server->enablePlugin(object DevTools\DevTools)

    [10:36:43] [Server thread/DEBUG]: #9 src/pocketmine/Server(1729): pocketmine\Server->enablePlugins(integer 0)

    [10:36:43] [Server thread/DEBUG]: #10 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-41782/, string[23] /home/gs-41782/plugins/)

    [10:36:43] [Server thread/DEBUG]: #11 src/pocketmine/PocketMine(291): pocketmine\server()

    [10:36:43] [Server thread/DEBUG]: #12 (1): require(string[94] phar:///pro/bin/mcpe/pocketmine-stable-1.14.0/PocketMine-MP.phar/src/pocketmine/)

    [10:36:43] [Server thread/INFO]: Disabling DevTools v1.13.0

    [10:36:43] [Server thread/INFO]: Preparing world "world"

    [10:36:43] [Server thread/INFO]: Enabling EconomyAPI v5.7.2

    [10:36:44] [Server thread/NOTICE]: [EconomyAPI] Something went wrong on update server.

    [10:36:44] [Server thread/NOTICE]: [EconomyAPI] Database provider was set to: Yaml

    [10:36:44] [Server thread/INFO]: Enabling FormAPI v1.3.0

    [10:36:44] [Server thread/INFO]: Enabling AuthUI v1.0.0

    [10:36:44] [Server thread/INFO]: [AuthUI] AuthUI successfully loaded.

    [10:36:44] [Server thread/INFO]: Enabling MultiWorld v1.5.1

    [10:36:44] [Server thread/INFO]: Starting GS4 status listener

    [10:36:44] [Server thread/INFO]: Setting query port to 41782

    [10:36:44] [Server thread/INFO]: Query running on 0.0.0.0:41782

    [10:36:44] [Server thread/INFO]: Default game type: โหมดเอาชีวิตรอด

    [10:36:44] [Server thread/INFO]: If you find this project useful, please consider donating to support development: https://patreon.com/pocketminemp

    [10:36:44] [Server thread/INFO]: Done (0.682s)! For help, type "help" or "?"
     
  6. Seeker

    Seeker Spider Jockey

    Messages:
    48
    GitHub:
    seeker-devs
    Read the error; you probably have a missing bracket or semi colon
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.