Skip to content

Commit

Permalink
Use Plugin instead of JavaPlugin in Bukkit Metrics constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
2008Choco authored and Bastian committed Jul 28, 2024
1 parent 184ceb9 commit a4eaa75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bukkit/src/main/java/org/bstats/bukkit/Metrics.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.io.IOException;
Expand All @@ -28,7 +27,7 @@ public class Metrics {
* @param serviceId The id of the service.
* It can be found at <a href="https://bstats.org/what-is-my-plugin-id">What is my plugin id?</a>
*/
public Metrics(JavaPlugin plugin, int serviceId) {
public Metrics(Plugin plugin, int serviceId) {
this.plugin = plugin;

// Get the config file
Expand Down

0 comments on commit a4eaa75

Please sign in to comment.