Class WorldTimeCondition

java.lang.Object
rocks.gravili.notquests.spigot.structs.conditions.Condition
rocks.gravili.notquests.spigot.structs.conditions.WorldTimeCondition

public class WorldTimeCondition extends Condition
  • Constructor Details

    • WorldTimeCondition

      public WorldTimeCondition(NotQuests main)
  • Method Details

    • setMinTime

      public void setMinTime(int minTime)
    • setMaxTime

      public void setMaxTime(int maxTime)
    • 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)
    • getMinTime

      public final int getMinTime()
    • getMaxTime

      public final int getMaxTime()
    • check

      public String check(QuestPlayer questPlayer, boolean enforce)
      Specified by:
      check 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.
    • getConditionDescription

      public String getConditionDescription()
      Specified by:
      getConditionDescription in class 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