2011-05-15 19:33:03 +02:00
|
|
|
package com.Acrobot.ChestShop.Items;
|
2011-05-15 18:16:25 +02:00
|
|
|
|
2011-05-21 19:55:55 +02:00
|
|
|
import info.somethingodd.bukkit.OddItem.OddItem;
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
2011-05-15 18:16:25 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Acrobot
|
|
|
|
*/
|
|
|
|
public class Odd {
|
|
|
|
public static OddItem oddItem;
|
|
|
|
|
2011-05-29 13:25:25 +02:00
|
|
|
public static boolean isInitialized() {
|
2011-05-21 19:55:55 +02:00
|
|
|
return oddItem != null;
|
|
|
|
}
|
|
|
|
|
2011-05-29 13:25:25 +02:00
|
|
|
public static ItemStack returnItemStack(String name) {
|
|
|
|
try {
|
2011-05-21 19:55:55 +02:00
|
|
|
return oddItem.getItemStack(name);
|
2011-05-29 13:25:25 +02:00
|
|
|
} catch (Exception ignored) {
|
|
|
|
return null;
|
|
|
|
}
|
2011-05-21 19:55:55 +02:00
|
|
|
}
|
2011-05-15 18:16:25 +02:00
|
|
|
}
|