mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-08 17:37:37 +01:00
Check that current stage is not null before advancing stage, fixes #818
This commit is contained in:
parent
e919554e59
commit
b446041fa1
@ -165,6 +165,10 @@ public class Quest {
|
||||
* @param q Player to force
|
||||
*/
|
||||
public void nextStage(Quester q) {
|
||||
if (q.getCurrentStage(this) == null) {
|
||||
plugin.getLogger().severe("Current stage was null for quester " + q.getPlayer().getUniqueId());
|
||||
return;
|
||||
}
|
||||
String stageCompleteMessage = q.getCurrentStage(this).completeMessage;
|
||||
if (stageCompleteMessage != null) {
|
||||
q.getPlayer().sendMessage(plugin.parseStringWithPossibleLineBreaks(stageCompleteMessage, this, q.getPlayer()));
|
||||
|
Loading…
Reference in New Issue
Block a user