Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7074

Bukkit #759 breaks backwards compatibilty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • CraftBukkit version 3537-Spigot-56be6a8-622dbe6 (MC: 1.19)
    • Yes

      Bukkit PR #759 (Add preview chat option in ServerListPingEvent) modifies the existing constructors of ServerListPingEvent, breaking the backwards compatibility with plugins using these constructors.

      java.lang.NoSuchMethodError: 'void org.bukkit.event.server.ServerListPingEvent.<init>(java.net.InetAddress, java.lang.String, int, int)' 

      I'm unsure if that was intentional or not, but wanted to report that as some users started complaining about it after updating to a recent spigot 1.19 version. I will update my plugin accordingly if intentional, but wanted to report that anyway

      Example code to reproduce if needed:

      ServerListPingEvent serverListPingEvent = new ServerListPingEvent(
        new InetSocketAddress("127.0.0.1", 53345).getAddress(),
        "motd",
        Bukkit.getOnlinePlayers().size(),
        500
      );

            Unassigned Unassigned
            derklaro Pasqual Koschmieder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: