Class FarmerLevel

java.lang.Object
xyz.geik.farmer.model.FarmerLevel

public class FarmerLevel extends Object
Level object of farmer Which contains capacity, required money, required perm etc.
  • Constructor Details

    • FarmerLevel

      public FarmerLevel()
      Constructor of class
    • FarmerLevel

      public FarmerLevel(String dataName, long capacity, long reqMoney, double tax, String perm)
      Main constructor of farmer level
      Parameters:
      dataName - data name of level
      capacity - capacity of level
      reqMoney - required money of level
      tax - tax amount of level
      perm - permission requirement of level
  • Method Details

    • getLevel

      @NotNull public static @NotNull FarmerLevel getLevel(String name)
      Gets single level from farmerLevels by config name
      Parameters:
      name - of level
      Returns:
      FarmerLevel object of level