ItemStack stack = (ItemStack) context.getSessionData("item");
List<ItemStack> consumables = (List<ItemStack>) context.getSessionData("consumables");
List<String> commands = (List<String>) context.getSessionData("commands");
String permNode = (String) context.getSessionData("permission-node");
CommandType type = (CommandType) context.getSessionData("run-as");
ClickType clickType = (ClickType) context.getSessionData("click-type");
int delay = (Integer) context.getSessionData("delay");
List<String> delayedCommands = new ArrayList<String>();
if(delay > 0)
delayedCommands = (List<String>) context.getSessionData("delayed-commands");