From 4fc14bbfa5577ce952cb1ee3ac7ac3e4dfd900c9 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 19 Nov 2016 12:52:05 -0500 Subject: [PATCH] Removed references to static methods The Static Insurance class to be more prescise --- src/alisolarflare/components/insurance/Insurance.java | 2 +- src/alisolarflare/components/insurance/getInsuranceBar.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/alisolarflare/components/insurance/Insurance.java b/src/alisolarflare/components/insurance/Insurance.java index 7a90e2b..50805cc 100644 --- a/src/alisolarflare/components/insurance/Insurance.java +++ b/src/alisolarflare/components/insurance/Insurance.java @@ -9,7 +9,7 @@ import org.bukkit.inventory.ItemStack; import alisolarflare.components.BaseCommand; -public class Insurance { +public abstract class Insurance { public static enum InsuranceType{ Nugget, Ingot, Block }; diff --git a/src/alisolarflare/components/insurance/getInsuranceBar.java b/src/alisolarflare/components/insurance/getInsuranceBar.java index 6c5e0b1..c0a268e 100644 --- a/src/alisolarflare/components/insurance/getInsuranceBar.java +++ b/src/alisolarflare/components/insurance/getInsuranceBar.java @@ -10,7 +10,6 @@ import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import alisolarflare.components.ModCommand; -import alisolarflare.components.insurance.Insurance.InsuranceType; public class getInsuranceBar extends ModCommand { @@ -18,9 +17,9 @@ public class getInsuranceBar extends ModCommand { public boolean OnCommand(CommandSender sender, String alias, String[] args) { Player player = (Player) sender; if (args.length > 0 || StringUtils.isNumeric(args[0])){ - player.getInventory().addItem(Insurance.getInsurance(InsuranceType.Ingot, Integer.parseInt(args[0]))); + //player.getInventory().addItem(Insurance.getInsurance(InsuranceType.Ingot, Integer.parseInt(args[0]))); }else{ - player.getInventory().addItem(Insurance.getInsurance(InsuranceType.Ingot)); + //player.getInventory().addItem(Insurance.getInsurance(InsuranceType.Ingot)); ItemStack potato = new ItemStack(Material.BAKED_POTATO); potato.getItemMeta().setDisplayName("Spicy Debug Potato");