mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-21 08:37:37 +01:00
Merge pull request #872 from 18PatZ/master
Patch quests start event bug (#838)
This commit is contained in:
commit
1b6acef6c1
@ -231,7 +231,7 @@ public class Quest {
|
|||||||
throw new InvalidStageException(this, stage);
|
throw new InvalidStageException(this, stage);
|
||||||
}
|
}
|
||||||
Stage currentStage = quester.getCurrentStage(this);
|
Stage currentStage = quester.getCurrentStage(this);
|
||||||
Stage nextStage = quester.getCurrentStage(this);
|
Stage nextStage = getStage(stage);
|
||||||
QuesterPreChangeStageEvent preEvent = new QuesterPreChangeStageEvent(quester, this, currentStage, nextStage);
|
QuesterPreChangeStageEvent preEvent = new QuesterPreChangeStageEvent(quester, this, currentStage, nextStage);
|
||||||
plugin.getServer().getPluginManager().callEvent(preEvent);
|
plugin.getServer().getPluginManager().callEvent(preEvent);
|
||||||
if (preEvent.isCancelled()) {
|
if (preEvent.isCancelled()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user