Class NumberCondition

java.lang.Object
rocks.gravili.notquests.paper.structs.conditions.Condition
rocks.gravili.notquests.paper.structs.conditions.NumberCondition

public class NumberCondition extends Condition
  • Constructor Details

    • NumberCondition

      public NumberCondition(NotQuests main)
  • Method Details

    • getMathOperator

      public final String getMathOperator()
    • setMathOperator

      public void setMathOperator(String mathOperator)
    • getVariableName

      public final String getVariableName()
    • setVariableName

      public void setVariableName(String variableName)
    • setExpression

      public void setExpression(String expression)
    • getExpression

      public final String getExpression()
    • checkInternally

      public String checkInternally(QuestPlayer questPlayer)
      Specified by:
      checkInternally in class Condition
      Returns:
      String if the condition is not fulfilled. Empty string if the condition is fulfilled. The String should say the still-required condition.
    • save

      public void save(org.bukkit.configuration.file.FileConfiguration configuration, String initialPath)
      Specified by:
      save in class Condition
    • load

      public void load(org.bukkit.configuration.file.FileConfiguration configuration, String initialPath)
      Specified by:
      load in class Condition
    • deserializeFromSingleLineString

      public void deserializeFromSingleLineString(ArrayList<String> arguments)
      Specified by:
      deserializeFromSingleLineString in class Condition
    • getConditionDescription

      public String getConditionDescription(org.bukkit.entity.Player player, Object... objects)
      Specified by:
      getConditionDescription in class Condition
    • handleCommands

      public static void handleCommands(NotQuests main, cloud.commandframework.paper.PaperCommandManager<org.bukkit.command.CommandSender> manager, cloud.commandframework.Command.Builder<org.bukkit.command.CommandSender> builder, ConditionFor conditionFor)