Add '/libsdisguises count'

This commit is contained in:
libraryaddict
2020-04-20 17:58:05 +12:00
parent dd7b0451a1
commit ee9240385e
4 changed files with 69 additions and 9 deletions

View File

@@ -8,6 +8,11 @@ import org.bukkit.ChatColor;
* Created by libraryaddict on 15/06/2017.
*/
public enum LibsMsg {
NO_DISGUISES_IN_USE(ChatColor.RED + "There are no disguises in use!"),
ACTIVE_DISGUISES_COUNT(ChatColor.DARK_GREEN + "There are %s disguises active"),
ACTIVE_DISGUISES_DISGUISE(ChatColor.GREEN + "%s: " + ChatColor.AQUA + "%s"),
ACTIVE_DISGUISES(ChatColor.DARK_GREEN + "The disguises in use are: %s"),
ACTIVE_DISGUISES_SEPERATOR(ChatColor.RED + ", " + ChatColor.GREEN),
BLOWN_DISGUISE(ChatColor.RED + "Your disguise was blown!"),
EXPIRED_DISGUISE(ChatColor.RED + "Your disguise has expired!"),
CAN_USE_DISGS(ChatColor.DARK_GREEN + "You can use the disguises:" + ChatColor.GREEN + " %s"),

View File

@@ -37,11 +37,11 @@ public enum TranslateType {
type.loadTranslations();
}
TranslateFiller.fillConfigs();
if (!LibsPremium.isPremium() && DisguiseConfig.isUseTranslations()) {
DisguiseUtilities.getLogger().severe("You must purchase the plugin to use translations!");
}
TranslateFiller.fillConfigs();
}
protected void saveTranslations() {