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

My server keeps getting crashed

Discussion in 'Development' started by adam1609, Jan 13, 2020.

  1. adam1609

    adam1609 Spider

    Messages:
    11
    GitHub:
    Adam1609
    PocketMine-MP Crash Dump Sun Jan 12 18:14:51 AKST 2020

    Error: Expected a tag of type pocketmine\nbt\tag\ShortTag, got pocketmine\nbt\tag\IntTag
    File: vendor/pocketmine/nbt/src/tag/CompoundTag
    Line: 100
    Type: RuntimeException

    Code:
    [91] * @param string $expectedClass Class that extends NamedTag
    [92] *
    [93] * @return NamedTag|null
    [94] * @throws \RuntimeException if the tag exists and is not of the expected type (if specified)
    [95] */
    [96] public function getTag(string $name, string $expectedClass = NamedTag::class) : ?NamedTag{
    [97] assert(is_a($expectedClass, NamedTag::class, true));
    [98] $tag = $this->value[$name] ?? null;
    [99] if($tag !== null and !($tag instanceof $expectedClass)){
    [100] throw new \RuntimeException("Expected a tag of type $expectedClass, got " . get_class($tag));
    [101] }
    [102]
    [103] return $tag;
    [104] }
    [105]
    [106] /**
    [107] * Returns the ListTag with the specified name, or null if it does not exist. Triggers an exception if a tag exists
    [108] * with that name and the tag is not a ListTag.
    [109] *
    [110] * @param string $name

    Backtrace:
    #0 vendor/pocketmine/nbt/src/tag/CompoundTag(183): pocketmine\nbt\tag\CompoundTag->getTag(string[2] id, string[27] pocketmine\nbt\tag\ShortTag)
    #1 vendor/pocketmine/nbt/src/tag/CompoundTag(218): pocketmine\nbt\tag\CompoundTag->getTagValue(string[2] id, string[27] pocketmine\nbt\tag\ShortTag, NULL , boolean )
    #2 src/pocketmine/item/Item(322): pocketmine\nbt\tag\CompoundTag->getShort(string[2] id)
    #3 src/pocketmine/entity/Human(777): pocketmine\item\Item->hasEnchantment(integer 28)
    #4 (): pocketmine\entity\Human->pocketmine\entity\{closure}(object pocketmine\item\Bow)
    #5 src/pocketmine/entity/Human(777): array_filter(array[27], object Closure)
    #6 src/pocketmine/Player(1546): pocketmine\entity\Human->getDrops()
    #7 src/pocketmine/Player(3671): pocketmine\Player->getDrops()
    #8 src/pocketmine/entity/Living(639): pocketmine\Player->onDeath()
    #9 src/pocketmine/Player(3661): pocketmine\entity\Living->kill()
    #10 src/pocketmine/entity/Entity(1054): pocketmine\Player->kill()
    #11 src/pocketmine/entity/Living(143): pocketmine\entity\Entity->setHealth(double 0)
    #12 src/pocketmine/entity/Entity(999): pocketmine\entity\Living->setHealth(double 0)
    #13 src/pocketmine/entity/Living(574): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageEvent)
    #14 src/pocketmine/Player(3759): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageEvent)
    #15 src/pocketmine/entity/Living(687): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageEvent)
    #16 src/pocketmine/entity/Human(683): pocketmine\entity\Living->entityBaseTick(integer 1)
    #17 src/pocketmine/Player(1773): pocketmine\entity\Human->entityBaseTick(integer 1)
    #18 src/pocketmine/level/Level(853): pocketmine\Player->onUpdate(integer 420851)
    #19 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 420851)
    #20 src/pocketmine/Server(2446): pocketmine\level\Level->doTick(integer 420851)
    #21 src/pocketmine/Server(2577): pocketmine\Server->checkTickUpdates(integer 420851, double 1578885291.6679)
    #22 src/pocketmine/Server(2346): pocketmine\Server->tick()
    #23 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
    #24 src/pocketmine/Server(1785): pocketmine\Server->start()
    #25 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[38] C:\Users\Administrator\Desktop\Server\, string[46] C:\Users\Administrator\Desktop\Server\plugins\)
    #26 src/pocketmine/PocketMine(291): pocketmine\server()

    PocketMine-MP version: 3.11.3 [Protocol 389]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Windows NT WIN-UBMRQV7SIBD 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
    PHP Version: 7.3.8
    Zend version: 3.3.8
    OS : WINNT, win

    Loaded plugins:
    DevTools 1.13.5 by PocketMine Team for API(s) 3.4.0
    MysteryCrate 9.1.1 by JackMD, DaPigGuy for API(s) 3.9.0
    KeepInventory 1.0 by KhoaGamingPro for API(s) 3.0.0
    ScoreHud 5.1.1 by JackMD for API(s) 3.0.0
    Texter 3.4.1 by yuko_fuyutsuki, mfmfnek0, onebone, ogiwara, Shootsta_ERU0531, Toganon, ShadowArt, Marron0421 for API(s) 3.10.0
    EconomyAPI 5.7.2 by onebone for API(s) 3.0.0
    PurePerms 1.4.2-c2a by 64FF00 & ProjectInfinity for API(s) 3.0.0
    essentialsTP 1.2.2 by for API(s) 3.0.0
    MSpawns 2.2 by EvolSoft for API(s) 3.0.0
    PortalsPE 1.1.1 by luca28pet for API(s) 3.0.0
    VCoin 1.0.1 by for API(s) 3.0.0-ALPHA12, 3.0.0
    InvSee 1.0.0 by BlockHorizons for API(s) 3.0.0
    PureEntitiesX 0.6.2 by milk0417, RevivalPMMP for API(s) 3.8.4
    EC-TableUI 1.1.1-pre by for API(s) 3.0.0
    VillagerTradeAPI 1.0.1 by for API(s) 3.0.0, 3.2.0, 3.1.0, 4.0.0
    KitSystem 1.1 by Puma for API(s) 3.8.1
    BlazinFly 1.8.7 by iiFlamiinBlaze for API(s) 3.0.0
    CursorInvFixer 1.0.0 by JackMD, Encritary for API(s) 3.9.0
    RPGCraft 0.0.1 by Adam1609 for API(s) 3.2.0
    Slapper 1.5.1 by jojoe77777 for API(s) 3.9.0
    Perk 1 by Puma for API(s) 3.8.1
    PVPlevelRPG 8.2 by for API(s) 2.0.0, 1.0.0, 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA10, 3.0.0
    Repair 1.0.1 by JackMD for API(s) 3.0.0
    QuestPMMP 0.2 by Gamchik for API(s) 3.0.0
    AutoClearLagg 3.0.0 by Twisted for API(s) 3.0.0
    BlazinVanish 1.0.3 by iiFlamiinBlaze for API(s) 3.0.0
    UIShop_raw 1.0.2 by egr7v8 for API(s) 1.0.0, 2.0.0, 3.0.0, 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA5, 3.0.0-ALPHA6, 3.0.0-ALPHA7, 3.0.0-ALPHA8, 3.0.0-ALPHA9
    MineReset 3.3.0 by Falk for API(s) 3.0.0, 4.0.0
    SlapperRotation 1.2.1 by jojoe77777 for API(s) 3.8.4
    ManyWorlds 2.2.0 by aliuly for API(s) 3.0.0
    RankUp 0.4.0 by Falkirks for API(s) 3.0.0
    Broadcaster 1.5 by EvolSoft for API(s) 3.0.0
    TokenName 0.1 by Adam1609 for API(s) 3.0.0
    ToolUpgrade 1.0.1 by for API(s) 3.9.0
    TeaSpoon 1.2.0 by CortexPE for API(s) 3.9.0
    SlapperCache 2.0.1 by jojoe77777 for API(s) 3.8.4
    FactionsPro 1.3.11-5 by Tethered_ for API(s) 3.8.4
    WorldProtect 2.3.8 by aliuly for API(s) 3.0.0
    AntiTNT 0.1 by Adam1609 for API(s) 3.0.0
    EconomyLand 2.0.9 by onebone for API(s) 3.9.0
    MysUFarms 0.0.1 by GlxTeam for API(s) 3.0.0
    ChoDen 1 by Puma for API(s) 3.8.1
    Gunz 1.0.0 by RainPlays, TheAz for API(s) 3.0.0, 4.0.0
    AllAPILoader 1.0.0 by TheNewHEROBRINE for API(s) 3.0.0, 4.0.0
    MiniBosses 2.0.2 by ace for API(s) 3.9.0
    PureChat 1.4.11 by 64FF00 for API(s) 3.0.0
    iProtector 3.1.0-8 by LDX for API(s) 3.11.3
    AliasReborn 1.0.0 by ArceusMatt for API(s) 3.11.3
    CustomAlerts 1.8 by EvolSoft for API(s) 3.11.3
    Sell 3.0.0 by Array, KairusDarkSeeker, JackMD for API(s) 3.11.3
    ClearLagg 1.1.0 by LegendOfMCPE for API(s) 3.11.3
    VoteReward 3.0.2-4 by LDX for API(s) 3.11.3
    AdvancedKits 5.2.2 by luca28pet for API(s) 3.11.3
    RulesUI 0.0.2 by BajanVlogs for API(s) 3.11.3
    MagicWE2 5.7.1 by XenialDan for API(s) 3.11.3
    FormAPI 1.0.0 by jojoe77777 for API(s) 3.11.3

    I couldn't reproduce this error. Someone help me please?
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    That's an invalid player inventory
     
  3. adam1609

    adam1609 Spider

    Messages:
    11
    GitHub:
    Adam1609
    So is there a way to fix this?
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    delete the player.dat file which has the issue
     
  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.