类 BStats
- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.bstats.BStats
-
public class BStats extends Object
bStats collects some data for plugin authors.Check out https://bStats.org/ to learn more about bStats!
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
BStats.BStatsSendingType
-
字段概要
字段 修饰符和类型 字段 说明 static int
B_STATS_VERSION
static boolean
logFailedRequests
static boolean
logResponseStatusText
static boolean
logSentData
-
构造器概要
构造器 构造器 说明 BStats()
-
方法概要
修饰符和类型 方法 说明 protected static String
getBukkitName()
protected static String
getBukkitVersion()
List<Object>
getCustomCharts()
protected static int
getPlayerAmount()
Map<String,Object>
getPluginData()
Gets the plugin specific data.static BStatsProvider
getProvider()
protected static Map<String,Object>
getServerData()
Gets the server specific data.static String
getServerId()
protected static boolean
isOnlineMode()
static void
setProvider(BStatsProvider provider)
static void
setSendingType(BStats.BStatsSendingType type)
static void
setServerId(String sid)
static void
submitData()
-
-
-
字段详细资料
-
B_STATS_VERSION
public static final int B_STATS_VERSION
- 另请参阅:
- 常量字段值
-
logFailedRequests
public static boolean logFailedRequests
-
logSentData
public static boolean logSentData
-
logResponseStatusText
public static boolean logResponseStatusText
-
-
方法详细资料
-
getProvider
public static BStatsProvider getProvider()
-
setProvider
public static void setProvider(BStatsProvider provider)
-
getServerId
public static String getServerId()
-
setServerId
public static void setServerId(@NotNull String sid)
-
setSendingType
public static void setSendingType(@NotNull BStats.BStatsSendingType type)
-
getPluginData
public Map<String,Object> getPluginData()
Gets the plugin specific data. This method is called using Reflection.- 返回:
- The plugin specific data.
-
getPlayerAmount
protected static int getPlayerAmount()
-
isOnlineMode
protected static boolean isOnlineMode()
-
getBukkitVersion
protected static String getBukkitVersion()
-
getBukkitName
protected static String getBukkitName()
-
getServerData
protected static Map<String,Object> getServerData()
Gets the server specific data.- 返回:
- The server specific data.
-
submitData
public static void submitData()
-
-