Skip to content

Commit

Permalink
Merge pull request #9 from RhythmicSys/VillagerInfo-Rewrite
Browse files Browse the repository at this point in the history
Add paper check
  • Loading branch information
RhythmicSys committed Aug 10, 2022
2 parents a62b1e6 + 41e3139 commit 11b3dd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.util.Map;

public class HelpCommand extends SubCommand {
MiniMessage mM = MiniMessage.miniMessage();

public HelpCommand() {
super("help", "VillagerInfo help", "/vill help");
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/adhdmc/villagerinfo/VillagerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ public final class VillagerInfo extends JavaPlugin {
@Override
public void onEnable() {
plugin = this;
try {
Class.forName("net.kyori.adventure.text.minimessage.MiniMessage");
Class.forName("com.destroystokyo.paper.entity.villager.Reputation");
} catch (ClassNotFoundException e) {
this.getLogger().severe("VillagerInfo relies on methods in classes not present on your server. Disabling plugin");
this.getServer().getPluginManager().disablePlugin(this);
}
localeConfig = new LocaleConfig(this);
localeConfig.getlocaleConfig();
Metrics metrics = new Metrics(this, 13653);
Expand Down

0 comments on commit 11b3dd4

Please sign in to comment.