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 {
|
2011-09-25 16:17:44 +02:00
|
|
|
public static boolean isInitialized;
|
2011-05-15 18:16:25 +02:00
|
|
|
|
2011-05-29 13:25:25 +02:00
|
|
|
public static boolean isInitialized() {
|
2011-09-25 16:17:44 +02:00
|
|
|
return isInitialized;
|
2011-05-21 19:55:55 +02:00
|
|
|
}
|
|
|
|
|
2011-05-29 13:25:25 +02:00
|
|
|
public static ItemStack returnItemStack(String name) {
|
|
|
|
try {
|
2011-09-25 16:17:44 +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
|
|
|
}
|