Class ServerUtils

java.lang.Object
net.apartium.cocoabeans.spigot.ServerUtils

public class ServerUtils extends Object
Utils to work with the running minecraft server
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull net.apartium.cocoabeans.structs.MinecraftPlatform
    Get the platform of the running server, including version and implementation details
    static @NotNull net.apartium.cocoabeans.structs.MinecraftVersion
    Get game version of the running server For example GameVersion(1, 8, 0)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ServerUtils

      public ServerUtils()
  • Method Details

    • getVersion

      @NotNull public static @NotNull net.apartium.cocoabeans.structs.MinecraftVersion getVersion()
      Get game version of the running server For example GameVersion(1, 8, 0)
      Returns:
      game version, if not explicitly specified defaults to 0
      See Also:
      • MinecraftVersion
    • getPlatform

      @NotNull public static @NotNull net.apartium.cocoabeans.structs.MinecraftPlatform getPlatform()
      Get the platform of the running server, including version and implementation details
      Returns:
      platform details
      See Also:
      • MinecraftPlatform