Code:
public void spawnPerPlayerWorldBorder(int size, Player p, Location loc){
WorldBorder wb = new WorldBorder();
PlayerConnection pc = ((CraftPlayer) p).getHandle().playerConnection;
wb.setSize(size);
wb.world = ((CraftWorld) p.getWorld()).getHandle();
wb.setCenter(loc.getX(), loc.getZ());
PacketPlayOutWorldBorder wbp = new PacketPlayOutWorldBorder(wb, PacketPlayOutWorldBorder.EnumWorldBorderAction.INITIALIZE);
pc.sendPacket(wbp);
}
here's the result
Extra points for whoever spots a mistake
nms cool
Last edited: