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

ProtocolSupportPE

Comments in 'Plugin Development' started by MrGenga, Oct 8, 2015.

  1. MrGenga
    Offline

    MrGenga Active Member

    Joined:
    Jul 24, 2015
    Posts:
    75
    Minecraft User:
    MrGenga
    Hello everyone, I have the nice idea, to create ProtocolSupportPE, like ProtocolSupport from Spigot. Because, somebody now plays on 0.11.1. Create support to protocol MCPE 0.10.x not real, because protocol changes in PM 1.4-1.5 is very big. But I have idea, how to do this. Copy from source of PocketMine 1.5 files: Network.php, Info.php, RakLibInterface.php, and all packets. Change somethings in Network.php, RakLibInterface.php and Info.php. And using code from BetaTester by @shoghicp, add new interface with other port to server. And one thing: in menu MCPE, shows version from PocketMine.php. And this version: 0.12.1.
    How you look at my idea?
  2. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Are you actually going to code this? Or is it just an idea?
    Legoboy0215 likes this.
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Why would you want that? This is already good enough. Look around you.
  4. MrGenga
    Offline

    MrGenga Active Member

    Joined:
    Jul 24, 2015
    Posts:
    75
    Minecraft User:
    MrGenga
  5. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Yeah, sounds good, I guess. Some MCPE server software has this feature, like RedstoneLamp.
  6. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Adverising...
    Taha_The_Hacker likes this.
  7. MrGenga
    Offline

    MrGenga Active Member

    Joined:
    Jul 24, 2015
    Posts:
    75
    Minecraft User:
    MrGenga
    RedstoneLamp for 0.12.1 it is a bad answer. In it doesn't work stop command!
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I think a better idea is to transfer 0.11 clients away to another server upon detecting the 0x82 login packet.
    thebigsmileXD and Legoboy0215 like this.
  9. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Lel
  10. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Advertising***
    Last edited: Oct 9, 2015
    LDX likes this.
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    RedstoneLamp was written in a way such that after establishing the initial connection, clients are separated into different protocols (MCPE, MCPC, etc.), then different subprotocols (0.11, 0.12, etc.). Such thing is not feasible with PocketMine's current code implementation unless you use PlayerCreationEvent.
  12. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    No. It's just an example. :p
    It doesn't work yet. And I was only mentioning it, not telling you to use it. Please read next time.
    When is PlayerCreationEvent fired? I never really see it being used in any plugins.
    Legoboy0215 likes this.
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    When there is a new Player object constructed, i.e. when ID_OPEN_CONNECTION_REQUEST_2 was sent and no data packets (what you need to know: no player name, no protocol version, etc.) received yet. You use this for changing the Player class to your own class. I discourage usage of this unless it is a private plugin or if it is very necessary and there is no alternative, because two plugins using it together shall conflict.
    LDX likes this.

Share This Page

Advertisement