How to check is the server running Spigot ?

Discussion in 'Spigot Help' started by Stawlker, Apr 14, 2017.

Thread Status:
Not open for further replies.
  1. All in the title. :)
     
  2. /ver
    /version
    /bukkit:ver
    /bukkit:version
    /icanhasbukkit

    Other than that, just check to see if they use any spigot plugins (instead of bukkit ones)
     
  3. In Java. :)
     
  4. This is what I found a while back in MCStats for checking for MineShafter.
    Modified for Spigot.

    Code (Text):
    public static boolean isSpigot() {
        try {
            Class.forName("org.bukkit.entity.Player$Spigot"); //Some Spigot class
            return true;
        } catch (Throwable tr) {
            return false;
        }
    }
     
  5. Thank you, boy.
     
Thread Status:
Not open for further replies.