Package com.bencodez.advancedcore.data
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetPluginVersion(org.bukkit.plugin.Plugin plugin) Gets the plugin version.intGets the prev day.Gets the prev month.intGets the prev week day.booleanvoidvoidvoidsetIgnoreTime(boolean value) voidvoidsetPluginVersion(org.bukkit.plugin.Plugin plugin) Sets the plugin version.voidsetPrevDay(int day) Sets the prev day.voidsetPrevMonth(String month) Sets the prev month.voidsetPrevWeekDay(int week) Sets the prev week day.Methods inherited from class com.bencodez.simpleapi.file.YMLFile
createSection, getData, getdFile, getPlugin, isFailedToRead, isIgnoreCase, isJustCreated, loadValues, reloadData, saveData, setData, setIgnoreCase, setup, setValue
-
Constructor Details
-
ServerData
-
-
Method Details
-
getLastUpdated
public long getLastUpdated() -
getPluginVersion
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
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:
onFileCreationin classcom.bencodez.simpleapi.file.YMLFile
-
setData
-
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
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
-