mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 07:39:42 +01:00
Improved some grammar and variable names
This commit is contained in:
parent
a176aba350
commit
579b7e7b97
@ -545,14 +545,14 @@ public final class Settings extends YamlConfiguration {
|
|||||||
try {
|
try {
|
||||||
return DataSource.DataSourceType.valueOf(configFile.getString(key, "sqlite").toUpperCase());
|
return DataSource.DataSourceType.valueOf(configFile.getString(key, "sqlite").toUpperCase());
|
||||||
} catch (IllegalArgumentException ex) {
|
} catch (IllegalArgumentException ex) {
|
||||||
ConsoleLogger.showError("Unknown database backend; defaulting to sqlite database");
|
ConsoleLogger.showError("Unknown database backend; defaulting to SQLite database");
|
||||||
return DataSource.DataSourceType.SQLITE;
|
return DataSource.DataSourceType.SQLITE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Config option for setting and check restricted user by username;ip ,
|
* Config option for setting and check restricted user by username;ip ,
|
||||||
* return false if ip and name doesnt amtch with player that join the
|
* return false if ip and name doesn't match with player that join the
|
||||||
* server, so player has a restricted access
|
* server, so player has a restricted access
|
||||||
* @param name String
|
* @param name String
|
||||||
* @param ip String
|
* @param ip String
|
||||||
@ -560,21 +560,21 @@ public final class Settings extends YamlConfiguration {
|
|||||||
* @return boolean */
|
* @return boolean */
|
||||||
public static boolean getRestrictedIp(String name, String ip) {
|
public static boolean getRestrictedIp(String name, String ip) {
|
||||||
|
|
||||||
Iterator<String> iter = getRestrictedIp.iterator();
|
Iterator<String> iterator = getRestrictedIp.iterator();
|
||||||
boolean trueonce = false;
|
boolean trueOnce = false;
|
||||||
boolean namefound = false;
|
boolean nameFound = false;
|
||||||
while (iter.hasNext()) {
|
while(iterator.hasNext()) {
|
||||||
String[] args = iter.next().split(";");
|
String[] args = iterator.next().split(";");
|
||||||
String testname = args[0];
|
String testName = args[0];
|
||||||
String testip = args[1];
|
String testIp = args[1];
|
||||||
if (testname.equalsIgnoreCase(name)) {
|
if (testName.equalsIgnoreCase(name)) {
|
||||||
namefound = true;
|
nameFound = true;
|
||||||
if (testip.equalsIgnoreCase(ip)) {
|
if (testIp.equalsIgnoreCase(ip)) {
|
||||||
trueonce = true;
|
trueOnce = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return !namefound || trueonce;
|
return !nameFound || trueOnce;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user