Sending packets nearby in 1.4.6

Discussion in 'Plugin Development' started by Malikk, Jan 13, 2013.

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

    Malikk

    Hey everybody,

    In past versions of Bukkit, i've been able to send packets easily with
    Code:
    ((CraftServer)Bukkit.getServer()).getServer().getServerConfigurationManager().sendPacketNearby(loc.getX(), loc.getY(), loc.getZ(), 64, ((CraftWorld) loc.getWorld()).getHandle().dimension, packet);
    
    Does anybody know where sendPacketNearby has gone to in 1.4.6?

    Thanks in advance.
     
  2. Offline

    microgeek

    I just get the player within x blocks, and send the packet to them. Not that hard. =)
     
  3. Offline

    Malikk

    I suppose I could do that.

    Nobody knows what happened to sendPacketNearby tho?
     
  4. Offline

    Comphenix

    The ServerConfigurationManagerAbstract class was renamed to PlayerList, along with the getters in MinecraftServer:
    Code:java
    1. ((CraftServer) getServer()).getServer().getPlayerList().sendPacketNearby(0, 0, 0, 0, 20, packet);


    You can find a full list of all the renamed classes and methods here. It was compiled by agaricusb using automated scripts, so all credit goes to him.
     
    Bone008 and Malikk like this.
  5. Offline

    Malikk

    Ah, thank you. That is extremely helpful.
     
    Comphenix likes this.
Thread Status:
Not open for further replies.

Share This Page