package uk.co.eluinhost.ultrahardcore.commands.scatter;

import org.bukkit.conversations.ConversationContext;
import org.bukkit.conversations.FixedSetPrompt;
import org.bukkit.conversations.Prompt;

public class ScatterTypePrompt extends FixedSetPrompt {

    public static final String TYPE_DATA = "scatter_type";

    public ScatterTypePrompt(){
        super(/*TODO types*/);
    }

    @Override
    protected Prompt acceptValidatedInput(ConversationContext conversationContext, String s) {
        return null;
    }

    @Override
    public String getPromptText(ConversationContext conversationContext) {
        return null;
    }
}

@@ -190,16 +190,77 @@
 .Prompt;
+%0Aimport uk.co.eluinhost.ultrahardcore.scatter.ScatterManager;
 %0A%0Apublic
@@ -378,202 +378,482 @@
     
-public ScatterTypePrompt()%7B%0A        super(/*TODO types*/);%0A    %7D%0A%0A    @Override%0A    protected Prompt acceptValidatedInput(ConversationContext conversationContext, String s) %7B%0A        return null
+/**%0A     * Allows any of the loaded scatter type names%0A     */%0A    public ScatterTypePrompt()%7B%0A        //noinspection AssignmentToSuperclassField%0A        fixedSet = ScatterManager.getInstance().getScatterTypeNames();%0A    %7D%0A%0A    @Override%0A    protected Prompt acceptValidatedInput(ConversationContext conversationContext, String s) %7B%0A        conversationContext.setSessionData(TYPE_DATA,ScatterManager.getInstance().getScatterType(s));%0A        return new ScatterWorldPrompt()
 ;%0A  
@@ -965,12 +965,57 @@
 urn 
-null
+%22Enter type of scatter to use: %22+formatFixedSet()
 ;%0A  

allow scatter types