diff --git a/src/main/java/me/blackvein/quests/QuestFactory.java b/src/main/java/me/blackvein/quests/QuestFactory.java index 418c4cefc..d9c3e7805 100644 --- a/src/main/java/me/blackvein/quests/QuestFactory.java +++ b/src/main/java/me/blackvein/quests/QuestFactory.java @@ -883,7 +883,12 @@ public class QuestFactory implements ConversationAbandonedListener { expRew = (Integer) cc.getSessionData(CK.REW_EXP); } if (cc.getSessionData(CK.REW_COMMAND) != null) { - commandRews = (LinkedList) cc.getSessionData(CK.REW_COMMAND); + if(cc.getSessionData(CK.REW_COMMAND) instanceof LinkedList) { + commandRews = (LinkedList) cc.getSessionData(CK.REW_COMMAND); + } else { + commandRews=new LinkedList<>(); + commandRews.addAll((List)cc.getSessionData(CK.REW_COMMAND)); + } } if (cc.getSessionData(CK.REW_PERMISSION) != null) { permRews = (LinkedList) cc.getSessionData(CK.REW_PERMISSION);