Remove debug messages

This commit is contained in:
Esophose 2019-05-02 20:15:16 -06:00
parent cac222813d
commit 119e54ad28
2 changed files with 1 additions and 4 deletions

View File

@ -62,7 +62,6 @@ public class CurrentAdapter implements VersionAdapter {
ItemStack tool = this.getItemInHand(player);
if (!tool.hasItemMeta() || !(tool.getItemMeta() instanceof Damageable) || tool.getType().getMaxDurability() < 1)
return;
Bukkit.broadcastMessage("Damageable: " + tool.getType());
int unbreakingLevel = tool.getEnchantmentLevel(Enchantment.DURABILITY);
Damageable damageable = (Damageable) tool.getItemMeta();

View File

@ -164,14 +164,13 @@ public class LocaleManager extends Manager {
*/
private static void checkExistingFile(URL fileUrl, File targetFile) {
UltimateTimber ultimateTimber = UltimateTimber.getInstance();
Bukkit.broadcastMessage("Checking file: " + targetFile.getName());
List<String> keysToUpdate = new ArrayList<>();
FileConfiguration existingConfiguration = YamlConfiguration.loadConfiguration(targetFile);
for (Locale locale : Locale.values())
if (existingConfiguration.get(locale.getNameAsKey()) == null)
keysToUpdate.add(locale.getNameAsKey());
Bukkit.broadcastMessage("Missing keys: " + keysToUpdate.size());
if (keysToUpdate.isEmpty())
return;
@ -184,7 +183,6 @@ public class LocaleManager extends Manager {
writer.write("# Changes since " + ultimateTimber.getName() + " v" + ultimateTimber.getDescription().getVersion());
for (String key : keysToUpdate) {
Bukkit.broadcastMessage("Writing to file: " + key + ": " + "\"" + newFileConfiguration.getString(key) + "\"");
writer.newLine();
writer.write(key + ": " + "\"" + newFileConfiguration.getString(key) + "\"");
}