Search in sources :

Example 6 with ConversationFactory

use of org.bukkit.conversations.ConversationFactory in project Citizens2 by CitizensDev.

the class TriggerEditPrompt method start.

public static Conversation start(Player player, WaypointEditor editor) {
    final Conversation conversation = new ConversationFactory(CitizensAPI.getPlugin()).withLocalEcho(false).withEscapeSequence("exit").withEscapeSequence("triggers").withEscapeSequence("/npc path").withModality(false).withFirstPrompt(new TriggerEditPrompt(editor)).buildConversation(player);
    conversation.begin();
    return conversation;
}
Also used : ConversationFactory(org.bukkit.conversations.ConversationFactory) Conversation(org.bukkit.conversations.Conversation)

Aggregations

ConversationFactory (org.bukkit.conversations.ConversationFactory)6 Conversation (org.bukkit.conversations.Conversation)4 EditingPrompt (io.github.wysohn.triggerreactor.bukkit.tools.prompts.EditingPrompt)1 UsagePrompt (io.github.wysohn.triggerreactor.bukkit.tools.prompts.UsagePrompt)1 ScriptEditor (io.github.wysohn.triggerreactor.tools.ScriptEditor)1 Consumer (java.util.function.Consumer)1 CitizensAPI (net.citizensnpcs.api.CitizensAPI)1 Editor (net.citizensnpcs.editor.Editor)1 CommandSender (org.bukkit.command.CommandSender)1 Conversable (org.bukkit.conversations.Conversable)1 ConversationContext (org.bukkit.conversations.ConversationContext)1 Prompt (org.bukkit.conversations.Prompt)1 StringPrompt (org.bukkit.conversations.StringPrompt)1 Player (org.bukkit.entity.Player)1