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

Set server brand for player

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version 3388-Spigot-9fd34ab-fb92f34 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT)
    • Yes

      Right now, setting the server brand (the "Spigot" string in the F3 debug mode of minecraft) is very difficult as you need to register the mc brand channel for the player via Reflection, and send them a plugin message. Moreover, this is only possible after a player joined.

       

      I propose two new methods:

      • setSeverBrand(Player, String) which sets the server brand for a single player
      • If possible: setDefaultServerBrand(String) which sets the brand globally for all future players. However, this might also be another config string for spigot instead of this method.

      Use-Cases:

      • Hide the server version for players that should not have that information, and show debug for admins.
      • Dynamically change it to display information (minecraft does render colors and other chat codes there) if playing on your server often needs x,y,z coordinates.
      • Use it as a prominent ingame clock

            Unassigned Unassigned
            Photon Photon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: