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

Solved Protocol in poggit

Discussion in 'Development' started by Axon, Sep 22, 2021.

  1. Axon

    Axon Zombie

    Messages:
    276
    Do I need to add mcpe-protocol in plugin.yml if I always check if the protocol exists?
    EG:
    PHP:
    If(class_exists(\pocketmine\network\mcpe\protocol\GameRulesChangedPacket)){ continue.... }else{ do something... }
     
    NTT and minijaham like this.
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Code:
    B7: Declare protocol (68)
    Plugins using *any* item from the `pocketmine\network\mcpe` namespace must declare `mcpe-protocol` in plugin.yml
    
    Source: https://poggit.pmmp.io/rules.edit

    I'm not so sure about your case, but I think it wouldn't hurt to add it.
     
    Agent and Axon like this.
  3. Axon

    Axon Zombie

    Messages:
    276
    Thanks!
     
    Agent and minijaham like this.
  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.