소스 검색

Minor improvements

TfT_02 11 년 전
부모
커밋
834e26b44e

+ 1 - 0
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) {

+ 1 - 0
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) {

+ 3 - 0
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);

+ 2 - 2
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