Class ServerUtils

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ServerUtils()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void syncCommands() 与客户端玩家同步指令列表.
      static Array<double> getTps() 获取服务器 TPS.
      static boolean isPaper() 获取当前服务器是否为 Paper.
      static boolean isSupportAdventure() 获取当前服务器是否存在 AdventureAPI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServerUtils

        ServerUtils()
    • Method Detail

      • syncCommands

         static void syncCommands()

        与客户端玩家同步指令列表.

      • getTps

         static Array<double> getTps()

        获取服务器 TPS.

      • isPaper

         static boolean isPaper()

        获取当前服务器是否为 Paper.

      • isSupportAdventure

         static boolean isSupportAdventure()

        获取当前服务器是否存在 AdventureAPI.