mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 03:25:20 +01:00
This commit is contained in:
parent
2b3e228418
commit
9992256ce2
@ -883,7 +883,12 @@ public class QuestFactory implements ConversationAbandonedListener {
|
|||||||
expRew = (Integer) cc.getSessionData(CK.REW_EXP);
|
expRew = (Integer) cc.getSessionData(CK.REW_EXP);
|
||||||
}
|
}
|
||||||
if (cc.getSessionData(CK.REW_COMMAND) != null) {
|
if (cc.getSessionData(CK.REW_COMMAND) != null) {
|
||||||
|
if(cc.getSessionData(CK.REW_COMMAND) instanceof LinkedList<?>) {
|
||||||
commandRews = (LinkedList<String>) cc.getSessionData(CK.REW_COMMAND);
|
commandRews = (LinkedList<String>) cc.getSessionData(CK.REW_COMMAND);
|
||||||
|
} else {
|
||||||
|
commandRews=new LinkedList<>();
|
||||||
|
commandRews.addAll((List<String>)cc.getSessionData(CK.REW_COMMAND));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (cc.getSessionData(CK.REW_PERMISSION) != null) {
|
if (cc.getSessionData(CK.REW_PERMISSION) != null) {
|
||||||
permRews = (LinkedList<String>) cc.getSessionData(CK.REW_PERMISSION);
|
permRews = (LinkedList<String>) cc.getSessionData(CK.REW_PERMISSION);
|
||||||
|
Loading…
Reference in New Issue
Block a user