mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-28 12:07:43 +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) {
|
||||
String parsed = parseString(s);
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user