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

Bungeecord

Comments in 'Plugin Development' started by ZenCloud, Aug 8, 2014.

  1. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    The "problem" will be... well... to save the inventories xD but isn't a big problem :p
  2. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    RubberBand, like BungeeCord, will probably not come with native support for inventory 'syncing'. It will have to be handled by a plugin. BungeeCord/Spigot plugins generally use MySQL for this kind of thing.
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Oh, then why didn't you help in PocketFactions?
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    MySQL?
  5. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    Yes, the best way to do this would be MySQL.
  6. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    We might be thinking too far ahead. ;)
    PEMapModder likes this.
  7. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Because I don't have time... if I can use my PC, I use it to check my (real life) things and if can, I work hard on EssentialsPE or my other projects... and I don't understand your coding style :p
  8. EkiFoX
    Offline

    EkiFoX Active Member Plugin Developer

    Joined:
    Feb 28, 2014
    Posts:
    94
    Plugins:
    2
    Minecraft User:
    ekifox
    I tryed use a iptables for it. But it dont work, because mcpe each 1 ms ping my server, and close the connection.
  9. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    How would it work? You can't exactly send another startgame packet to be client, it will probably just ignore it.
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Proxy redirection!
  11. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    Nobody has accomplished (finished) anything like BungeeCord for PocketMine, so really its all theory.
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Theory is good enough.
    Dutok likes this.
  13. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    If you knew the networking protocol, you would understand it.
  14. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    In that way, won't all players join with the same IP address?
  16. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    yes, but this is why players can not login if they are sent to another server
  17. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    is that right?
    PHP:
    SocketAddress address = new InetSocketAddress("192.168.0.111"19133);
    DatagramSocket socket = new DatagramSocket();

    byte[] buffer loginPacket.getData(); //i save login packet instance when player join proxy

            
    try {
                
    DatagramPacket pk = new DatagramPacket(bufferbuffer.length);
                
    pk.setSocketAddress(address);

                
    socket.send(pk);
            } catch (
    IOException e) {
                
    e.printStackTrace();
            }

    but server doesn't send any packet back :/

    my packet handling
    PHP:
    byte[] recvBuf = new byte[1024 1024];

            
    DatagramPacket dp = new DatagramPacket(recvBufrecvBuf.length);
            
    dp.setSocketAddress(session.getAddress());

            while (
    isRunning() && !isInterrupted()) {
                if (
    timeoutTimes >= 5) {
                    
    session.disconnect();
                    break;
                }

                
    DatagramSocket socket session.socket;
                try {
                    
    socket.receive(dp);
                    
    dp.setData(Arrays.copyOf(recvBufdp.getLength()));

                    
    session.getPacketProcessor().putPacket(dp.getData());
                    
    timeoutTimes 0;
                } catch (
    SocketTimeoutException e) {
                    
    timeoutTimes++;
                } catch (
    IOException e) {
                    
    e.printStackTrace();
                }
            }
  18. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    First of all, are you aware that a LoginPacket in the MCPE protocol is not an independent UDP packet?
  19. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    So what packets should be sent?

Share This Page

Advertisement