Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Protocol idea

Comments in 'Plugin Development' started by codmadnesspro, Nov 20, 2014.

  1. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    Hello,
    I was looking through some of the source of "BetaTester" which is meant to be for 0.10.0 beta 1.
    I was wondering if I could change the code so I can allow "Alpha Final" MCPE 0.10.0 onto the server.
    I saw some code here

    Code:
    class BetaTester extends PluginBase{
    
        const CURRENT_PROTOCOL = 19;
        const TARGET_PROTOCOL = 18;
    
        public function onEnable(){
            $this->saveDefaultConfig();
    Now where is says TARGET PROTOCOL I changed it to 20 as if someone logs into the server with incorrect protocol it kicks them saying their protocol. What's wrong with it when I change it to 20 in the target protocol?
    Thanks
  2. HotPepperDaddy
    Offline

    HotPepperDaddy New Member

    Joined:
    Nov 9, 2014
    Posts:
    23
    Minecraft User:
    HotPepperDaddy
    If you're running this plugin on an older server change CURRENT_PROTOCOL to 20.
  3. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    What?
    You don't need the "BetaTester" plugin to allow MCPE 0.10.x clients to join, PocketMine now allow you to do that by default, but remove support for 0.9.x or older clients
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    CURRENT_PROTOCOL is the protocol that you want to support but PocketMine doesn't (beta). TARGET_PROTOCOL is the protocol that PocketMine currently supports.

Share This Page

Advertisement