From 834e26b44ec85fd15a368dedb23925f9614995a2 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Thu, 19 Sep 2013 21:41:33 +0200 Subject: [PATCH] Minor improvements --- src/main/java/com/gmail/nossr50/skills/repair/Repair.java | 1 + .../com/gmail/nossr50/skills/repair/RepairMaterialType.java | 1 + .../com/gmail/nossr50/skills/repair/RepairableManager.java | 3 +++ .../com/gmail/nossr50/skills/repair/config/RepairConfig.java | 4 ++-- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java index 8e51e3c39..a815f3729 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java @@ -29,6 +29,7 @@ public class Repair { * Checks if the item is salvageable. * * @param item Item to check + * * @return true if the item is salvageable, false otherwise */ public static boolean isSalvageable(ItemStack item) { diff --git a/src/main/java/com/gmail/nossr50/skills/repair/RepairMaterialType.java b/src/main/java/com/gmail/nossr50/skills/repair/RepairMaterialType.java index 7e7b051d3..f478b798d 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/RepairMaterialType.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/RepairMaterialType.java @@ -19,6 +19,7 @@ public enum RepairMaterialType { * Get the base permissions associated with this RepairMaterialType. * * @param player The player to check the permissions for + * * @return true if the player has permissions, false otherwise */ public boolean getPermissions(Player player) { diff --git a/src/main/java/com/gmail/nossr50/skills/repair/RepairableManager.java b/src/main/java/com/gmail/nossr50/skills/repair/RepairableManager.java index 150eccc6b..912b33edc 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/RepairableManager.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/RepairableManager.java @@ -24,6 +24,7 @@ public interface RepairableManager { * Checks if an item is repairable * * @param type Material to check if repairable + * * @return true if repairable, false if not */ public boolean isRepairable(Material type); @@ -32,6 +33,7 @@ public interface RepairableManager { * Checks if an item is repairable * * @param itemStack Item to check if repairable + * * @return true if repairable, false if not */ public boolean isRepairable(ItemStack itemStack); @@ -40,6 +42,7 @@ public interface RepairableManager { * Gets the repairable with this type * * @param type Material of the repairable to look for + * * @return the repairable, can be null */ public Repairable getRepairable(Material type); diff --git a/src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfig.java b/src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfig.java index bfc4f08ad..2df0f8dd0 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfig.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/config/RepairConfig.java @@ -37,7 +37,7 @@ public class RepairConfig extends ConfigLoader { for (String key : keys) { if (config.contains("Repairables." + key + ".ItemId")) { - plugin.getLogger().warning("You are using an old version of the repair.yml file."); + plugin.getLogger().warning("You are using an old version of the " + fileName + " file."); plugin.getLogger().warning("You should delete your current file and allow a new one to generate."); plugin.getLogger().warning("Repair will not work properly until you do."); return; @@ -103,7 +103,7 @@ public class RepairConfig extends ConfigLoader { short maximumDurability = (config.contains("Repairables." + key + ".MaximumDurability") ? (short) config.getInt("Repairables." + key + ".MaximumDurability") : (itemMaterial != null ? itemMaterial.getMaxDurability() : 0)); if (maximumDurability <= 0) { - reason.add("Maxium durability of " + key + " must be greater than 0!"); + reason.add("Maximum durability of " + key + " must be greater than 0!"); } // Item Type