Class SettingsNodeStep

java.lang.Object
com.plotsquared.core.setup.SettingsNodeStep
All Implemented Interfaces:
SetupStep

public class SettingsNodeStep extends Object implements SetupStep
A SettingsNodeStep is a step wrapping a ConfigurationNode.
  • Constructor Details

  • Method Details

    • handleInput

      public SetupStep handleInput(PlotPlayer<?> plotPlayer, PlotAreaBuilder builder, String argument)
      Description copied from interface: SetupStep
      Handles the input for this setup step.
      Specified by:
      handleInput in interface SetupStep
      Parameters:
      plotPlayer - the plot player executing the command
      builder - the plot area builder to work on
      argument - the argument given as input
      Returns:
      the next step if input was valid, this setup step otherwise
    • getSuggestions

      public @NonNull Collection<String> getSuggestions()
      Specified by:
      getSuggestions in interface SetupStep
    • getDefaultValue

      public @Nullable String getDefaultValue()
      Specified by:
      getDefaultValue in interface SetupStep
    • announce

      public void announce(PlotPlayer<?> plotPlayer)
      Description copied from interface: SetupStep
      Announces this step to the player.
      Specified by:
      announce in interface SetupStep
      Parameters:
      plotPlayer - the player to announce this step to.
    • createSuggestions

      public Collection<Command> createSuggestions(PlotPlayer<?> plotPlayer, String argument)
      Description copied from interface: SetupStep
      Creates a collection of suggestions for the current input.
      Specified by:
      createSuggestions in interface SetupStep
      Parameters:
      plotPlayer - the player to receive the suggestions.
      argument - the argument already typed.
      Returns:
      a collection of suggestions.
    • getConfigurationNode

      public ConfigurationNode getConfigurationNode()
    • getId

      public int getId()