standard javadoc
This commit is contained in:
@@ -43,8 +43,8 @@ public class CustomConfiguration extends YamlConfiguration {
|
||||
|
||||
/**
|
||||
* Method reLoad.
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean reLoad() {
|
||||
boolean out = true;
|
||||
if (!configFile.exists()) {
|
||||
@@ -65,8 +65,8 @@ public class CustomConfiguration extends YamlConfiguration {
|
||||
|
||||
/**
|
||||
* Method getConfigFile.
|
||||
* @return File
|
||||
*/
|
||||
|
||||
* @return File */
|
||||
public File getConfigFile() {
|
||||
return configFile;
|
||||
}
|
||||
@@ -74,8 +74,8 @@ public class CustomConfiguration extends YamlConfiguration {
|
||||
/**
|
||||
* Method loadResource.
|
||||
* @param file File
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean loadResource(File file) {
|
||||
if (!file.exists()) {
|
||||
try {
|
||||
|
||||
@@ -46,8 +46,8 @@ public class Messages extends CustomConfiguration {
|
||||
/**
|
||||
* Method send.
|
||||
* @param msg String
|
||||
* @return String[]
|
||||
*/
|
||||
|
||||
* @return String[] */
|
||||
public String[] send(String msg) {
|
||||
if (!Settings.messagesLanguage.equalsIgnoreCase(singleton.lang)) {
|
||||
singleton.reloadMessages();
|
||||
@@ -73,8 +73,8 @@ public class Messages extends CustomConfiguration {
|
||||
|
||||
/**
|
||||
* Method getInstance.
|
||||
* @return Messages
|
||||
*/
|
||||
|
||||
* @return Messages */
|
||||
public static Messages getInstance() {
|
||||
if (singleton == null) {
|
||||
singleton = new Messages(Settings.messageFile, Settings.messagesLanguage);
|
||||
|
||||
@@ -35,8 +35,8 @@ public class OtherAccounts extends CustomConfiguration {
|
||||
|
||||
/**
|
||||
* Method getInstance.
|
||||
* @return OtherAccounts
|
||||
*/
|
||||
|
||||
* @return OtherAccounts */
|
||||
public static OtherAccounts getInstance() {
|
||||
if (others == null) {
|
||||
others = new OtherAccounts();
|
||||
@@ -83,8 +83,8 @@ public class OtherAccounts extends CustomConfiguration {
|
||||
/**
|
||||
* Method getAllPlayersByUUID.
|
||||
* @param uuid UUID
|
||||
* @return List<String>
|
||||
*/
|
||||
|
||||
* @return List<String> */
|
||||
public List<String> getAllPlayersByUUID(UUID uuid) {
|
||||
return this.getStringList(uuid.toString());
|
||||
}
|
||||
|
||||
@@ -118,8 +118,8 @@ public final class Settings extends YamlConfiguration {
|
||||
|
||||
/**
|
||||
* Method reload.
|
||||
* @throws Exception
|
||||
*/
|
||||
|
||||
* @throws Exception */
|
||||
public static void reload() throws Exception {
|
||||
plugin.getLogger().info("Loading Configuration File...");
|
||||
boolean exist = SETTINGS_FILE.exists();
|
||||
@@ -524,8 +524,8 @@ public final class Settings extends YamlConfiguration {
|
||||
|
||||
/**
|
||||
* Method getPasswordHash.
|
||||
* @return HashAlgorithm
|
||||
*/
|
||||
|
||||
* @return HashAlgorithm */
|
||||
private static HashAlgorithm getPasswordHash() {
|
||||
String key = "settings.security.passwordHash";
|
||||
try {
|
||||
@@ -538,8 +538,8 @@ public final class Settings extends YamlConfiguration {
|
||||
|
||||
/**
|
||||
* Method getDataSource.
|
||||
* @return DataSourceType
|
||||
*/
|
||||
|
||||
* @return DataSourceType */
|
||||
private static DataSourceType getDataSource() {
|
||||
String key = "DataSource.backend";
|
||||
try {
|
||||
@@ -556,8 +556,8 @@ public final class Settings extends YamlConfiguration {
|
||||
* server, so player has a restricted access
|
||||
* @param name String
|
||||
* @param ip String
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public static boolean getRestrictedIp(String name, String ip) {
|
||||
|
||||
Iterator<String> iter = getRestrictedIp.iterator();
|
||||
@@ -610,8 +610,8 @@ public final class Settings extends YamlConfiguration {
|
||||
/**
|
||||
* Method checkLang.
|
||||
* @param lang String
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public static String checkLang(String lang) {
|
||||
if (new File(PLUGIN_FOLDER, "messages" + File.separator + "messages_" + lang + ".yml").exists()) {
|
||||
ConsoleLogger.info("Set Language to: " + lang);
|
||||
@@ -673,8 +673,8 @@ public final class Settings extends YamlConfiguration {
|
||||
/**
|
||||
* Method isEmailCorrect.
|
||||
* @param email String
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public static boolean isEmailCorrect(String email) {
|
||||
if (!email.contains("@"))
|
||||
return false;
|
||||
|
||||
@@ -45,8 +45,8 @@ public class Spawn extends CustomConfiguration {
|
||||
|
||||
/**
|
||||
* Method getInstance.
|
||||
* @return Spawn
|
||||
*/
|
||||
|
||||
* @return Spawn */
|
||||
public static Spawn getInstance() {
|
||||
if (spawn == null) {
|
||||
spawn = new Spawn();
|
||||
@@ -57,8 +57,8 @@ public class Spawn extends CustomConfiguration {
|
||||
/**
|
||||
* Method setSpawn.
|
||||
* @param location Location
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean setSpawn(Location location) {
|
||||
try {
|
||||
set("spawn.world", location.getWorld().getName());
|
||||
@@ -77,8 +77,8 @@ public class Spawn extends CustomConfiguration {
|
||||
/**
|
||||
* Method setFirstSpawn.
|
||||
* @param location Location
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean setFirstSpawn(Location location) {
|
||||
try {
|
||||
set("firstspawn.world", location.getWorld().getName());
|
||||
@@ -96,8 +96,8 @@ public class Spawn extends CustomConfiguration {
|
||||
|
||||
/**
|
||||
* Method getLocation.
|
||||
* @return Location
|
||||
*/
|
||||
|
||||
* @return Location */
|
||||
@Deprecated
|
||||
public Location getLocation() {
|
||||
return getSpawn();
|
||||
@@ -105,8 +105,8 @@ public class Spawn extends CustomConfiguration {
|
||||
|
||||
/**
|
||||
* Method getSpawn.
|
||||
* @return Location
|
||||
*/
|
||||
|
||||
* @return Location */
|
||||
public Location getSpawn() {
|
||||
try {
|
||||
if (this.getString("spawn.world").isEmpty() || this.getString("spawn.world").equals(""))
|
||||
@@ -120,8 +120,8 @@ public class Spawn extends CustomConfiguration {
|
||||
|
||||
/**
|
||||
* Method getFirstSpawn.
|
||||
* @return Location
|
||||
*/
|
||||
|
||||
* @return Location */
|
||||
public Location getFirstSpawn() {
|
||||
try {
|
||||
if (this.getString("firstspawn.world").isEmpty() || this.getString("firstspawn.world").equals(""))
|
||||
|
||||
Reference in New Issue
Block a user