mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-25 17:37:34 +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;
|
|
}
|
|
}
|
|
}
|