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

PlayerQuitEvent.get/setQuitMessage() is incorrectly marked as @NotNull

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-cbcc8e8-06efc9e (MC: 1.14.4)
    • Yes

      PlayerQuitEvent.get/setQuitMessage() is marked as @NotNull, but I see no reason to do that. We have a plugin that does set it to null (to prevent a quit message to be sent) and we do not have any problems caused by it.

      Additionally PlayerJoinEvent.get/setJoinMessage() is @Nullable and is working similar.

      So I think it should be changed to @Nullable.

            Unassigned Unassigned
            Brokkonaut Brokkonaut
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: