mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-23 18:55:11 +01:00
cleanup Settings
This commit is contained in:
parent
45d939f0f5
commit
f88e197863
@ -18,7 +18,7 @@ public final class Settings extends YamlConfiguration {
|
|||||||
private static Settings instance;
|
private static Settings instance;
|
||||||
|
|
||||||
// This is not an option!
|
// This is not an option!
|
||||||
public static Boolean antiBotInAction = false;
|
public static boolean antiBotInAction = false;
|
||||||
|
|
||||||
public static final File PLUGIN_FOLDER = AuthMe.getInstance().getDataFolder();
|
public static final File PLUGIN_FOLDER = AuthMe.getInstance().getDataFolder();
|
||||||
public static final File MODULE_FOLDER = new File(PLUGIN_FOLDER, "modules");
|
public static final File MODULE_FOLDER = new File(PLUGIN_FOLDER, "modules");
|
||||||
@ -513,11 +513,11 @@ public final class Settings extends YamlConfiguration {
|
|||||||
* return false if ip and name doesnt amtch with player that join the
|
* return false if ip and name doesnt amtch with player that join the
|
||||||
* server, so player has a restricted access
|
* server, so player has a restricted access
|
||||||
*/
|
*/
|
||||||
public static Boolean getRestrictedIp(String name, String ip) {
|
public static boolean getRestrictedIp(String name, String ip) {
|
||||||
|
|
||||||
Iterator<String> iter = getRestrictedIp.iterator();
|
Iterator<String> iter = getRestrictedIp.iterator();
|
||||||
Boolean trueonce = false;
|
boolean trueonce = false;
|
||||||
Boolean namefound = false;
|
boolean namefound = false;
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
String[] args = iter.next().split(";");
|
String[] args = iter.next().split(";");
|
||||||
String testname = args[0];
|
String testname = args[0];
|
||||||
@ -529,11 +529,7 @@ public final class Settings extends YamlConfiguration {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!namefound) {
|
return !namefound || trueonce;
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return trueonce;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user