[02:37:16.709] [Server thread/CRITICAL]: ErrorException: "Object of class pocketmine\player\GameMode could not be converted to int" (EXCEPTION) in "plugins/WorldProtect_dev-40.phar/src/aliuly/worldprotect/common/MPMU" at line 93
--- Stack trace ---
#0 plugins/WorldProtect_dev-40.phar/src/aliuly/worldprotect/common/MPMU(93): pocketmine\errorhandler\ErrorToExceptionHandler::handle(integer 8, string[72] Object of class pocketmine\player\GameMode could not be converted to int, string[95] phar:///home/minecraft/plugins/WorldProtect_dev-40.phar/src/aliuly/worldprotect/, integer 93)
#1 plugins/WorldProtect_dev-40.phar/src/aliuly/worldprotect/GmMgr(81): aliuly\worldprotect\common\MPMU::gamemodeStr(object pocketmine\player\GameMode#23445)
#2 pmsrc/src/event/RegisteredListener(75): aliuly\worldprotect\GmMgr->onTeleport(object pocketmine\event\entity\EntityTeleportEvent#98547)
#3 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntityTeleportEvent#98547)
#4 pmsrc/src/entity/Entity(1384): pocketmine\event\Event->call()
Server version: 4.0.3 Protocol version: 475