Add new metrics pies

This commit is contained in:
NotMyFault 2021-02-22 15:18:20 +01:00
parent 6cc9b5c62b
commit da45813a06
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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;