Solved Constructor is undefined?

Discussion in 'Plugin Development' started by WHQ, Oct 23, 2015.

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

    WHQ

    Hey guys, so i was playing around with Skionz's Helix particle tutorial and i made a little plugin tot test it on my server.

    Now here is the problem:
    Code:
    PacketPlayOutWorldParticles packet = new PacketPlayOutWorldParticles("fireworksSpark", (float) (loc.getX() + x), (float) (loc.getY() + y), (float) (loc.getZ() + z), 0, 0, 0, 0, 1);
                        for(Player online : Bukkit.getOnlinePlayers()) {
                            ((CraftPlayer)online).getHandle().playerConnection.sendPacket(packet);
    I get a "The constructor PacketPlayOutWorldParticles(String, float, float, float, int, int, int, int, int) is undefined" error

    why, i don't see any problems in this code?
     
  2. Offline

    mcdorli

    You didn't even bother to check what the constructor is? In spigot 1.8 the first argument changed from a string to a enum.

    This is what makes packeting dangerous. It can make your plugin outdated in 1 version, it doesn't even need to be a main version, just something like 1.x.5 -> 1.x.6
     
    WHQ likes this.
Thread Status:
Not open for further replies.

Share This Page