mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-24 02:56:02 +01:00
24 lines
493 B
Java
24 lines
493 B
Java
package com.Acrobot.ChestShop.Items;
|
|
|
|
import info.somethingodd.bukkit.OddItem.OddItem;
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
/**
|
|
* @author Acrobot
|
|
*/
|
|
public class Odd {
|
|
public static OddItem oddItem;
|
|
|
|
public static boolean isInitialized() {
|
|
return oddItem != null;
|
|
}
|
|
|
|
public static ItemStack returnItemStack(String name) {
|
|
try {
|
|
return oddItem.getItemStack(name);
|
|
} catch (Exception ignored) {
|
|
return null;
|
|
}
|
|
}
|
|
}
|