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