Little problem in sending packets.

Discussion in 'Plugin Development' started by BlockCat, Mar 11, 2013.

Thread Status:
Not open for further replies.
  1. So hello bukkit community,

    I have this... problem.

    Code:
    CraftPlayer play = (CraftPlayer) player;
            play.getHandle().playerConnection.sendPacket(new Packet103SetSlot());
            System.out.println("got send");
    This piece works,
    but... when I remove the:
    Code:
    System.out.println("got send");
    It won't work anymore...

    Anyone has any idea what this is?
     
  2. Offline

    GodzOfMadness

    Zino could you explain more on what is going on? because what i got out of this is
    when you removed a line that was simply printing to console "got send" it stopped working. What stopped working?
     
  3. The code is using the packet to update items (in an inventory shared by two people) set by the plugin.
    if the last line is removed, the inventory won't update. Else. it works perfectly.
     
  4. Offline

    GodzOfMadness

    Zino what about play.updateInventory()?
     
  5. .. it's not a player inventory, if it that method was not deprecated.
     
  6. Offline

    GodzOfMadness

    Zino No idea why it is acting that way but someone else can most likely assist you in this problem you are having
     
  7. Offline

    microgeek

    A System.out.println() won't make, or break your code, it's something else.
     
  8. Offline

    jorisk322

    I think Zino knows that, but all he knows is that the problem appears when he removes that test-code.

    Is there a github-thing for this project? Because it may make more sense with the other code around it.
     
Thread Status:
Not open for further replies.

Share This Page