Skip to content

Commit

Permalink
Check for the aiker class in order to detect paper timings in 1.8
Browse files Browse the repository at this point in the history
Related #55
  • Loading branch information
games647 committed Mar 10, 2019
1 parent bcd6374 commit 8576657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/github/games647/lagmonitor/LagMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ private void registerCommands() {
PluginCommand timing = getCommand("timing");
try {
//paper moved to class to package co.aikar.timings
Class.forName("org.bukkit.command.defaults.TimingsCommand");
timing.setExecutor(new SpigotTimingsCommand(this));
} catch (ClassNotFoundException e) {
Class.forName("co.aiker.timings.TimingsIdentifier");
timing.setExecutor(new PaperTimingsCommand(this));
} catch (ClassNotFoundException e) {
timing.setExecutor(new SpigotTimingsCommand(this));
}
}
}

0 comments on commit 8576657

Please sign in to comment.