Skip to content

Commit

Permalink
Add new metrics pies
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyFault committed Feb 22, 2021
1 parent 22be81b commit 8ba910c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@

public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain<Player> {

private static final int BSTATS_ID = 1404;
@Getter private static WorldEdit worldEdit;
private static final int BSTATS_ID = 1404;

static {
try {
Expand Down Expand Up @@ -1030,6 +1030,8 @@ public final ChunkGenerator getDefaultWorldGenerator(@NotNull final String world
() -> Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit") != null ?
"FastAsyncWorldEdit" :
"WorldEdit"));
metrics.addCustomChart(new Metrics.SimplePie("offline_mode", () -> Settings.UUID.OFFLINE ? "true" : "false"));
metrics.addCustomChart(new Metrics.SimplePie("offline_mode_force", () -> Settings.UUID.FORCE_LOWERCASE ? "true" : "false"));
}

@Override public ChunkManager initChunkManager() {
Expand Down

0 comments on commit 8ba910c

Please sign in to comment.