Allow plugin to be used as an API on free resource page

This commit is contained in:
libraryaddict
2020-04-14 02:27:34 +12:00
parent 810a8f8e00
commit 6e112ea137
3 changed files with 13 additions and 5 deletions

View File

@@ -111,7 +111,7 @@ public class LibsDisguises extends JavaPlugin {
registerCommand("libsdisguises", new LibsDisguisesCommand());
if (!DisguiseConfig.isDisableCommands()) {
if (!DisguiseConfig.isDisableCommands() && !LibsPremium.isAPIPlugin()) {
registerCommand("disguise", new DisguiseCommand());
registerCommand("undisguise", new UndisguiseCommand());
registerCommand("disguiseplayer", new DisguisePlayerCommand());
@@ -132,7 +132,11 @@ public class LibsDisguises extends JavaPlugin {
registerCommand("grabskin", new GrabSkinCommand());
registerCommand("savedisguise", new SaveDisguiseCommand());
} else {
getLogger().info("Commands has been disabled, as per config");
if (LibsPremium.isAPIPlugin()) {
getLogger().info("Commands not enabled in API version of Lib's Disguises!");
} else {
getLogger().info("Commands has been disabled, as per config");
}
}
new MetricsInitalizer();