Updated messages and commands for api version

This commit is contained in:
libraryaddict 2020-04-17 14:30:29 +12:00
parent cf5a3953d9
commit 7e1eb29dd2
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
2 changed files with 26 additions and 24 deletions

View File

@ -113,7 +113,8 @@ public class LibsDisguises extends JavaPlugin {
registerCommand("libsdisguises", new LibsDisguisesCommand()); registerCommand("libsdisguises", new LibsDisguisesCommand());
if (!DisguiseConfig.isDisableCommands() && !LibsPremium.isAPIPlugin()) { if (!DisguiseConfig.isDisableCommands()) {
if (!LibsPremium.isAPIPlugin()) {
registerCommand("disguise", new DisguiseCommand()); registerCommand("disguise", new DisguiseCommand());
registerCommand("undisguise", new UndisguiseCommand()); registerCommand("undisguise", new UndisguiseCommand());
registerCommand("disguiseplayer", new DisguisePlayerCommand()); registerCommand("disguiseplayer", new DisguisePlayerCommand());
@ -121,7 +122,8 @@ public class LibsDisguises extends JavaPlugin {
registerCommand("undisguiseentity", new UndisguiseEntityCommand()); registerCommand("undisguiseentity", new UndisguiseEntityCommand());
registerCommand("disguiseentity", new DisguiseEntityCommand()); registerCommand("disguiseentity", new DisguiseEntityCommand());
registerCommand("disguiseradius", new DisguiseRadiusCommand(getConfig().getInt("DisguiseRadiusMax"))); registerCommand("disguiseradius", new DisguiseRadiusCommand(getConfig().getInt("DisguiseRadiusMax")));
registerCommand("undisguiseradius", new UndisguiseRadiusCommand(getConfig().getInt("UndisguiseRadiusMax"))); registerCommand("undisguiseradius",
new UndisguiseRadiusCommand(getConfig().getInt("UndisguiseRadiusMax")));
registerCommand("disguisehelp", new DisguiseHelpCommand()); registerCommand("disguisehelp", new DisguiseHelpCommand());
registerCommand("disguiseclone", new DisguiseCloneCommand()); registerCommand("disguiseclone", new DisguiseCloneCommand());
registerCommand("disguiseviewself", new DisguiseViewSelfCommand()); registerCommand("disguiseviewself", new DisguiseViewSelfCommand());
@ -131,15 +133,15 @@ public class LibsDisguises extends JavaPlugin {
registerCommand("disguisemodifyradius", registerCommand("disguisemodifyradius",
new DisguiseModifyRadiusCommand(getConfig().getInt("DisguiseRadiusMax"))); new DisguiseModifyRadiusCommand(getConfig().getInt("DisguiseRadiusMax")));
registerCommand("copydisguise", new CopyDisguiseCommand()); registerCommand("copydisguise", new CopyDisguiseCommand());
} else {
getLogger().info("This is the API version! /grabskin and /savedisguise enabled!");
}
registerCommand("grabskin", new GrabSkinCommand()); registerCommand("grabskin", new GrabSkinCommand());
registerCommand("savedisguise", new SaveDisguiseCommand()); registerCommand("savedisguise", new SaveDisguiseCommand());
} else {
if (LibsPremium.isAPIPlugin()) {
getLogger().info("Commands not enabled in API version of Lib's Disguises!");
} else { } else {
getLogger().info("Commands has been disabled, as per config"); getLogger().info("Commands has been disabled, as per config");
} }
}
new MetricsInitalizer(); new MetricsInitalizer();
} }

View File

@ -356,7 +356,7 @@ public class LibsPremium {
FileUtil.copy(f, new File(LibsDisguises.getInstance().getDataFolder(), f.getName())); FileUtil.copy(f, new File(LibsDisguises.getInstance().getDataFolder(), f.getName()));
DisguiseUtilities.getLogger().info("Copied " + f.getName() + DisguiseUtilities.getLogger().info("Copied " + f.getName() +
" to the plugin folder! This is incase you want to use dev builds."); " to the plugin folder! You can use dev builds with premium enabled!");
} }
} }