Class ServerData

java.lang.Object
com.bencodez.simpleapi.file.YMLFile
com.bencodez.advancedcore.data.ServerData

public class ServerData extends com.bencodez.simpleapi.file.YMLFile
The Class ServerData.
  • Constructor Details

  • Method Details

    • getLastUpdated

      public long getLastUpdated()
    • getPluginVersion

      public String getPluginVersion(org.bukkit.plugin.Plugin plugin)
      Gets the plugin version.
      Parameters:
      plugin - the plugin
      Returns:
      the plugin version
    • getPrevDay

      public int getPrevDay()
      Gets the prev day.
      Returns:
      the prev day
    • getPrevMonth

      public String getPrevMonth()
      Gets the prev month.
      Returns:
      the prev month
    • getPrevWeekDay

      public int getPrevWeekDay()
      Gets the prev week day.
      Returns:
      the prev week day
    • isIgnoreTime

      public boolean isIgnoreTime()
    • onFileCreation

      public void onFileCreation()
      Specified by:
      onFileCreation in class com.bencodez.simpleapi.file.YMLFile
    • setData

      public void setData(String path, Object value)
    • setIgnoreTime

      public void setIgnoreTime(boolean value)
    • setLastUpdated

      public void setLastUpdated()
    • setPluginVersion

      public void setPluginVersion(org.bukkit.plugin.Plugin plugin)
      Sets the plugin version.
      Parameters:
      plugin - the new plugin version
    • setPrevDay

      public void setPrevDay(int day)
      Sets the prev day.
      Parameters:
      day - the new prev day
    • setPrevMonth

      public void setPrevMonth(String month)
      Sets the prev month.
      Parameters:
      month - the new prev month
    • setPrevWeekDay

      public void setPrevWeekDay(int week)
      Sets the prev week day.
      Parameters:
      week - the new prev week day