Solved "Leave Bed" button editing?

Discussion in 'Plugin Development' started by StaticE, Apr 8, 2013.


Is this possible or am I wasting my time?

  1. It's possible, just difficult.

  2. lol noob this isn't gunna happen.

Thread Status:
Not open for further replies.
  1. Offline


    I just recently posted trying to figure out which packet to use to force a player to exit a bed. I can get a player into a bed no problem (night, day, whatever) which is great, but the leave bed button doesn't do anything.

    I'm wondering if there is a method / packet / something I can edit for this button that will allow me to kick them out of the bed if the button is clicked. This is the code I'm using to force them in the bed:

    ((CraftPlayer)player).getHandle().playerConnection.sendPacket(new Packet17EntityLocationAction(((CraftPlayer)player).getHandle(), 0, event.getClickedBlock().getX(), event.getClickedBlock().getY(), event.getClickedBlock().getZ()));
    Any help is appreciated. Also, the Player Event packet does not work because it is a client -> server, not server -> client. Thanks
  2. Offline


    SE Plugins
    I do not believe this is possible at this time through bukkit or craftbukkit.
  3. Offline


    Yeah, I figured that. Just odd how I can force a player in bed but not out...
Thread Status:
Not open for further replies.

Share This Page