Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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