Updated messages and commands for api version
This commit is contained in:
parent
cf5a3953d9
commit
7e1eb29dd2
@ -113,32 +113,34 @@ public class LibsDisguises extends JavaPlugin {
|
|||||||
|
|
||||||
registerCommand("libsdisguises", new LibsDisguisesCommand());
|
registerCommand("libsdisguises", new LibsDisguisesCommand());
|
||||||
|
|
||||||
if (!DisguiseConfig.isDisableCommands() && !LibsPremium.isAPIPlugin()) {
|
if (!DisguiseConfig.isDisableCommands()) {
|
||||||
registerCommand("disguise", new DisguiseCommand());
|
if (!LibsPremium.isAPIPlugin()) {
|
||||||
registerCommand("undisguise", new UndisguiseCommand());
|
registerCommand("disguise", new DisguiseCommand());
|
||||||
registerCommand("disguiseplayer", new DisguisePlayerCommand());
|
registerCommand("undisguise", new UndisguiseCommand());
|
||||||
registerCommand("undisguiseplayer", new UndisguisePlayerCommand());
|
registerCommand("disguiseplayer", new DisguisePlayerCommand());
|
||||||
registerCommand("undisguiseentity", new UndisguiseEntityCommand());
|
registerCommand("undisguiseplayer", new UndisguisePlayerCommand());
|
||||||
registerCommand("disguiseentity", new DisguiseEntityCommand());
|
registerCommand("undisguiseentity", new UndisguiseEntityCommand());
|
||||||
registerCommand("disguiseradius", new DisguiseRadiusCommand(getConfig().getInt("DisguiseRadiusMax")));
|
registerCommand("disguiseentity", new DisguiseEntityCommand());
|
||||||
registerCommand("undisguiseradius", new UndisguiseRadiusCommand(getConfig().getInt("UndisguiseRadiusMax")));
|
registerCommand("disguiseradius", new DisguiseRadiusCommand(getConfig().getInt("DisguiseRadiusMax")));
|
||||||
registerCommand("disguisehelp", new DisguiseHelpCommand());
|
registerCommand("undisguiseradius",
|
||||||
registerCommand("disguiseclone", new DisguiseCloneCommand());
|
new UndisguiseRadiusCommand(getConfig().getInt("UndisguiseRadiusMax")));
|
||||||
registerCommand("disguiseviewself", new DisguiseViewSelfCommand());
|
registerCommand("disguisehelp", new DisguiseHelpCommand());
|
||||||
registerCommand("disguisemodify", new DisguiseModifyCommand());
|
registerCommand("disguiseclone", new DisguiseCloneCommand());
|
||||||
registerCommand("disguisemodifyentity", new DisguiseModifyEntityCommand());
|
registerCommand("disguiseviewself", new DisguiseViewSelfCommand());
|
||||||
registerCommand("disguisemodifyplayer", new DisguiseModifyPlayerCommand());
|
registerCommand("disguisemodify", new DisguiseModifyCommand());
|
||||||
registerCommand("disguisemodifyradius",
|
registerCommand("disguisemodifyentity", new DisguiseModifyEntityCommand());
|
||||||
new DisguiseModifyRadiusCommand(getConfig().getInt("DisguiseRadiusMax")));
|
registerCommand("disguisemodifyplayer", new DisguiseModifyPlayerCommand());
|
||||||
registerCommand("copydisguise", new CopyDisguiseCommand());
|
registerCommand("disguisemodifyradius",
|
||||||
|
new DisguiseModifyRadiusCommand(getConfig().getInt("DisguiseRadiusMax")));
|
||||||
|
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 {
|
} else {
|
||||||
if (LibsPremium.isAPIPlugin()) {
|
getLogger().info("Commands has been disabled, as per config");
|
||||||
getLogger().info("Commands not enabled in API version of Lib's Disguises!");
|
|
||||||
} else {
|
|
||||||
getLogger().info("Commands has been disabled, as per config");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
new MetricsInitalizer();
|
new MetricsInitalizer();
|
||||||
|
@ -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!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user