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

issue using the /effect command with a very high duration

Discussion in 'Help' started by TeraCube, Nov 29, 2017.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    PMMP issue or not
    thanks

    Code:
    2017-11-28 [15:26:06] �[Server thread/CRITICAL]: InvalidArgumentException: "Effect duration must be in range of 0 - 2147483647" (EXCEPTION) in "src/pocketmine/entity/Effect" at line 183�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #0 src/pocketmine/command/defaults/EffectCommand(118): pocketmine\entity\Effect->setDuration(integer 19999999980)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #1 src/pocketmine/command/SimpleCommandMap(258): pocketmine\command\defaults\EffectCommand->execute(pocketmine\Player object, string effect, array Array())�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #2 src/pocketmine/Server(1980): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string effect Verek invisibility 999999999 250 true)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #3 src/pocketmine/Player(2122): pocketmine\Server->dispatchCommand(pocketmine\Player object, string effect Verek invisibility 999999999 250 true)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(220): pocketmine\Player->chat(string /effect Verek invisibility 999999999 250 true)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #9 src/pocketmine/Player(2999): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #11 vendor/pmmp/raklib/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 82.xxx.237.211:33213, raklib\protocol\EncapsulatedPacket object, integer 0)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(84): raklib\server\ServerHandler->handlePacket()�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #13 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #14 src/pocketmine/Server(2516): pocketmine\network\Network->processInterfaces()�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #15 src/pocketmine/Server(2272): pocketmine\Server->tick()�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #16 src/pocketmine/Server(2147): pocketmine\Server->tickProcessor()�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #17 src/pocketmine/Server(1735): pocketmine\Server->start()�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #18 src/pocketmine/PocketMine(552): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)�
    2017-11-28 [15:26:06] �[Server thread/DEBUG]: #19 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)�```
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    well, I think although this should be catched in the effect command itself, the exception is totally valid
     
  3. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    Technically it's the user at fault for inputting garbage, but it should be range-checked.
     
  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.