1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Plugin Error

Discussion in 'Plugin Help' started by PixelzChris, Apr 7, 2019.

  1. PixelzChris

    PixelzChris Silverfish

    Messages:
    17
    Error: Call to a member function getContents() on null
    File: plugins/TeleportSystem_v1.0.0/src/korado531m7/InventoryMenuAPI/InventoryMenu
    Line: 169
    Type: Error

    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: TeleportSystem v1.0.0

    Code:
    [160] $tag = new CompoundTag();
    [161] $tag->setString('CustomName', $this->getName());
    [162] IMU::sendTagData($player, $tag, $pos);
    [163] }
    [164]
    [165] /**
    [166] * this function is for internal use only. Don't call this
    [167] */
    [168] public function setData(Player $player, FakeMenuInventory $inv){
    [169] InventoryMenuAPI::setData($player, $this, $inv, $player->getInventory()->getContents());
    [170] }
    [171] }

    Any solution?
     
  2. Zach1603

    Zach1603 Spider Jockey

    Messages:
    27
    GitHub:
    zedstar16
    $player probably isn’t a player object, so possibly the player isn’t online
     
  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.