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

Stringtag

Discussion in 'Plugin Help' started by ByAlperenS, Jun 3, 2020.

  1. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    Error:

    InvalidArgumentException: "StringTag cannot hold more than 32767 bytes, got string of length 38400" (EXCEPTION) in "vendor/pocketmine/nbt/src/tag/StringTag" at line 44
    [17:21:50] [Server thread/DEBUG]: #0 plugins/Core-Up-SkyBlock/src/Core/BaseDosya(656): pocketmine\nbt\tag\StringTag->__construct(string[4] Data, string[38400] ................................................................................)

    Code;

    Code:
    $nbt->setTag(new CompoundTag("Skin", [
                                        new StringTag("Data", $skin->getSkinData()),
                                        new StringTag("Name", "Elmas"),
                                        new StringTag("GeometryName", "geometry.dia"),
                                        new ByteArrayTag("GeometryData", file_get_contents($this->getDataFolder() . "dia.json"))
                                    ]));
                                    $nbt->setTag(new IntTag("position"));
                                    $nbt->setTag(new StringTag("player", "0"));
     
  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.