iTXTech / Genisys

Feature-rich server software for Minecraft: Pocket Edition & Windows 10 Edition Beta
https://itxtech.org/genisys/
GNU General Public License v3.0
435 stars 243 forks source link

Crash #135

Closed MrDoni98 closed 8 years ago

MrDoni98 commented 8 years ago

Error: Argument 1 passed to pocketmine\item\Item::get() must be of the type integer, string given, called in /root/classic/src/pocketmine/nbt/NBT.php on line 111 File: /src/pocketmine/item/Item Line: 1147 Type: notice

Code: [1138] foreach(Item::$creative as $i => $d){ [1139] if($item->equals($d, !$item->isTool())){ [1140] return $i; [1141] } [1142] } [1143] [1144] return -1; [1145] } [1146] [1147] public static function get(int $id, $meta = 0, int $count = 1, $tags = "") : Item{

xpyctum commented 8 years ago

hule tak?

MrDoni98 commented 8 years ago

xz

MrDoni98 commented 8 years ago

в нагрузку )) Error: "Call to undefined method pocketmine\network\rcon\RCONInstance::kill()" (EXCEPTION) in "/src/pocketmine/network/rcon/RCON" at line 74 [20:15:50] [Server thread/EMERGENCY]: Crashed while crashing, killing process

ara2am commented 8 years ago

@xpyctum я помню, что ты делал коммит где добавлял перед переменными в функциях указатели на тип данных. Я так делать не советую, так как вот тебе пример тому. Так же после таких указателей множество поагинов не работают. Указатели необязательны в пхп7.

PeratX commented 8 years ago

I think this is caused by a plugin.

MrDoni98 commented 8 years ago

@PeratX Error: Argument 1 passed to pocketmine\item\Item::get() must be of the type integer, string given, called in /root/classic/src/pocketmine/nbt/NBT.php on line 111 File: /src/pocketmine/item/Item Line: 1147 Type: notice

Code: [1138] foreach(Item::$creative as $i => $d){ [1139] if($item->equals($d, !$item->isTool())){ [1140] return $i; [1141] } [1142] } [1143] [1144] return -1; [1145] } [1146] [1147] public static function get(int $id, $meta = 0, int $count = 1, $tags = "") : Item{

Matthww commented 8 years ago

What plugins do you use?

MrDoni98 commented 8 years ago

EconomyAPI v2.0.8, EconomySell v2.0.6, EconomyShop v2.0.6, EconomyJob v2.0.4, ServerAuth v0.1, PurePerms v1.2.2, vgapi v0.1 beta, RegionGuard vultra, AdvancedKits v4.1, PureChat v1.3.4-INDEV

Matthww commented 8 years ago

Do you know when it happens?

MrDoni98 commented 8 years ago

when a player is teleported to spawn

Matthww commented 8 years ago

Ok move all you're plugins to a directory outside the server directory but keep vgapi and RegionGuard. And look if the crash is still happening

ara2am commented 8 years ago

And run yours server without plugins.

MrDoni98 commented 8 years ago

@mixailenko5 I deleted all the plugins the same result

ara2am commented 8 years ago

Can you tun server without folder "worlds" and "players". If you want you can rename this folders, and after test rename to "worlds" and "players" again.

ara2am commented 8 years ago

run*

MrDoni98 commented 8 years ago

without a map working, but in the last build of all it was okay

Matthww commented 8 years ago

So if you put everything back plugins, worlds and players you don't get this crash anymore?

MrDoni98 commented 8 years ago

Thank you for the question almost resolved ... Crash stopped, but I figured out the reason.Error for Anvil world. Generator

MrDoni98 commented 8 years ago

The result was a funny world

Matthww commented 8 years ago

Looks cool

Matthww commented 8 years ago

If you don't have this crashes anymore you can just close it :P