Package com.plotsquared.core.setup
Class SettingsNodeStep
java.lang.Object
com.plotsquared.core.setup.SettingsNodeStep
- All Implemented Interfaces:
SetupStep
A SettingsNodeStep is a step wrapping a
ConfigurationNode.-
Constructor Summary
ConstructorsConstructorDescriptionSettingsNodeStep(ConfigurationNode configurationNode, int id, SettingsNodesWrapper wrapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidannounce(PlotPlayer<?> plotPlayer)Announces this step to the player.createSuggestions(PlotPlayer<?> plotPlayer, String argument)Creates a collection of suggestions for the current input.@Nullable StringintgetId()@NonNull Collection<String>handleInput(PlotPlayer<?> plotPlayer, PlotAreaBuilder builder, String argument)Handles the input for this setup step.
-
Constructor Details
-
SettingsNodeStep
-
-
Method Details
-
handleInput
Description copied from interface:SetupStepHandles the input for this setup step.- Specified by:
handleInputin interfaceSetupStep- Parameters:
plotPlayer- the plot player executing the commandbuilder- the plot area builder to work onargument- the argument given as input- Returns:
- the next step if input was valid, this setup step otherwise
-
getSuggestions
- Specified by:
getSuggestionsin interfaceSetupStep
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceSetupStep
-
announce
Description copied from interface:SetupStepAnnounces this step to the player. -
createSuggestions
Description copied from interface:SetupStepCreates a collection of suggestions for the current input.- Specified by:
createSuggestionsin interfaceSetupStep- Parameters:
plotPlayer- the player to receive the suggestions.argument- the argument already typed.- Returns:
- a collection of suggestions.
-
getConfigurationNode
-
getId
public int getId()
-