mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 09:08:05 +01:00
parent
81b24b4b50
commit
a7d6ea8885
@ -13,7 +13,6 @@ import net.citizensnpcs.api.npc.NPC;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.conversations.Conversable;
|
||||
import org.bukkit.conversations.Conversation;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -156,7 +155,7 @@ public class NpcListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
Conversation c = plugin.NPCConversationFactory.buildConversation((Conversable) player);
|
||||
Conversation c = plugin.NPCConversationFactory.buildConversation(player);
|
||||
c.getContext().setSessionData("quests", npcQuests);
|
||||
c.getContext().setSessionData("npc", evt.getNPC().getName());
|
||||
c.begin();
|
||||
@ -177,7 +176,7 @@ public class NpcListener implements Listener {
|
||||
player.sendMessage(msg);
|
||||
}
|
||||
|
||||
plugin.conversationFactory.buildConversation((Conversable) player).begin();
|
||||
plugin.conversationFactory.buildConversation(player).begin();
|
||||
|
||||
} else if (quester.currentQuests.containsKey(q) == false) {
|
||||
|
||||
@ -206,7 +205,7 @@ public class NpcListener implements Listener {
|
||||
player.sendMessage(msg);
|
||||
}
|
||||
|
||||
plugin.conversationFactory.buildConversation((Conversable) player).begin();
|
||||
plugin.conversationFactory.buildConversation(player).begin();
|
||||
}
|
||||
|
||||
} else if (quester.currentQuests.containsKey(q) == false) {
|
||||
@ -217,11 +216,13 @@ public class NpcListener implements Listener {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
|
||||
evt.getClicker().sendMessage(ChatColor.YELLOW + Lang.get("noMoreQuest"));
|
||||
|
||||
}
|
||||
|
||||
evt.getClicker().sendMessage(ChatColor.YELLOW + "No more quests available.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -9,9 +9,9 @@ import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import me.blackvein.quests.Quests;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
public class Lang {
|
||||
@ -839,6 +839,7 @@ public class Lang {
|
||||
langMap.put("enterAnOption", "Enter an option");
|
||||
langMap.put("questAccepted", "Quest accepted: <quest>");
|
||||
langMap.put("currentQuest", "Current Quests:");
|
||||
langMap.put("noMoreQuest", "No more quests available.");
|
||||
|
||||
//Objectives
|
||||
langMap.put("damage", "Damage");
|
||||
|
Loading…
Reference in New Issue
Block a user