Skip to content

Commit

Permalink
refactor bstats for packetevents
Browse files Browse the repository at this point in the history
  • Loading branch information
AoElite committed Nov 25, 2024
1 parent 87f30ee commit 677dd04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/ac/grim/grimac/manager/init/start/BStats.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

import ac.grim.grimac.GrimAPI;
import ac.grim.grimac.manager.init.Initable;
import io.github.retrooper.packetevents.bstats.bukkit.Metrics;

public class BStats implements Initable {
@Override
public void start() {
int pluginId = 12820; // <-- Replace with the id of your plugin!
try {
new io.github.retrooper.packetevents.bstats.Metrics(GrimAPI.INSTANCE.getPlugin(), pluginId);
new Metrics(GrimAPI.INSTANCE.getPlugin(), pluginId);
} catch (Exception ignored) {
}
}
Expand Down

0 comments on commit 677dd04

Please sign in to comment.