Removed references to static methods
The Static Insurance class to be more prescise
This commit is contained in:
parent
c40ab37afa
commit
4fc14bbfa5
2 changed files with 3 additions and 4 deletions
|
@ -9,7 +9,7 @@ import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import alisolarflare.components.BaseCommand;
|
import alisolarflare.components.BaseCommand;
|
||||||
|
|
||||||
public class Insurance {
|
public abstract class Insurance {
|
||||||
public static enum InsuranceType{
|
public static enum InsuranceType{
|
||||||
Nugget, Ingot, Block
|
Nugget, Ingot, Block
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,7 +10,6 @@ import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import alisolarflare.components.ModCommand;
|
import alisolarflare.components.ModCommand;
|
||||||
import alisolarflare.components.insurance.Insurance.InsuranceType;
|
|
||||||
|
|
||||||
public class getInsuranceBar extends ModCommand {
|
public class getInsuranceBar extends ModCommand {
|
||||||
|
|
||||||
|
@ -18,9 +17,9 @@ public class getInsuranceBar extends ModCommand {
|
||||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
if (args.length > 0 || StringUtils.isNumeric(args[0])){
|
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{
|
}else{
|
||||||
player.getInventory().addItem(Insurance.getInsurance(InsuranceType.Ingot));
|
//player.getInventory().addItem(Insurance.getInsurance(InsuranceType.Ingot));
|
||||||
|
|
||||||
ItemStack potato = new ItemStack(Material.BAKED_POTATO);
|
ItemStack potato = new ItemStack(Material.BAKED_POTATO);
|
||||||
potato.getItemMeta().setDisplayName("Spicy Debug Potato");
|
potato.getItemMeta().setDisplayName("Spicy Debug Potato");
|
||||||
|
|
Loading…
Reference in a new issue