mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-30 14:43:39 +01:00
Warn console when using <npc> tag without NPC start
This commit is contained in:
parent
b7fb2a144d
commit
3e74d80713
@ -2209,7 +2209,11 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
|||||||
public static String parseString(String s, Quest quest) {
|
public static String parseString(String s, Quest quest) {
|
||||||
String parsed = parseString(s);
|
String parsed = parseString(s);
|
||||||
if (parsed.contains("<npc>")) {
|
if (parsed.contains("<npc>")) {
|
||||||
parsed = parsed.replace("<npc>", quest.npcStart.getName());
|
if (quest.npcStart != null) {
|
||||||
|
parsed = parsed.replace("<npc>", quest.npcStart.getName());
|
||||||
|
} else {
|
||||||
|
Bukkit.getLogger().warning(quest.getName() + " quest uses <npc> tag but doesn't have an NPC start set");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return parsed;
|
return parsed;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user