mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Add new metrics pies
This commit is contained in:
parent
6cc9b5c62b
commit
da45813a06
@ -1065,6 +1065,8 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl
|
|||||||
"worldedit_implementation",
|
"worldedit_implementation",
|
||||||
() -> Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit") != null ? "FastAsyncWorldEdit" : "WorldEdit"
|
() -> Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit") != null ? "FastAsyncWorldEdit" : "WorldEdit"
|
||||||
));
|
));
|
||||||
|
metrics.addCustomChart(new SimplePie("offline_mode", () -> Settings.UUID.OFFLINE ? "true" : "false"));
|
||||||
|
metrics.addCustomChart(new SimplePie("offline_mode_force", () -> Settings.UUID.FORCE_LOWERCASE ? "true" : "false"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -145,8 +145,6 @@ public class Settings extends Config {
|
|||||||
Web.URL = config.getString("web.url", Web.URL);
|
Web.URL = config.getString("web.url", Web.URL);
|
||||||
|
|
||||||
// Caching
|
// Caching
|
||||||
Enabled_Components.PERMISSION_CACHE =
|
|
||||||
config.getBoolean("cache.permissions", Enabled_Components.PERMISSION_CACHE);
|
|
||||||
Enabled_Components.RATING_CACHE =
|
Enabled_Components.RATING_CACHE =
|
||||||
config.getBoolean("cache.ratings", Enabled_Components.RATING_CACHE);
|
config.getBoolean("cache.ratings", Enabled_Components.RATING_CACHE);
|
||||||
|
|
||||||
@ -688,8 +686,6 @@ public class Settings extends Config {
|
|||||||
UPDATE_NOTIFICATIONS = true;
|
UPDATE_NOTIFICATIONS = true;
|
||||||
@Comment("Stores user metadata in a database")
|
@Comment("Stores user metadata in a database")
|
||||||
public static boolean PERSISTENT_META = true;
|
public static boolean PERSISTENT_META = true;
|
||||||
@Comment("Optimizes permission checks")
|
|
||||||
public static boolean PERMISSION_CACHE = true;
|
|
||||||
@Comment("Getting a rating won't need the database")
|
@Comment("Getting a rating won't need the database")
|
||||||
public static boolean RATING_CACHE =
|
public static boolean RATING_CACHE =
|
||||||
true;
|
true;
|
||||||
|
Loading…
Reference in New Issue
Block a user