Use hashmaps advantage

This commit is contained in:
DaniFoldi 2021-03-20 13:34:22 +01:00
parent 7c3057162a
commit 00a04cb3a9
1 changed files with 2 additions and 4 deletions

View File

@ -43,10 +43,8 @@ public class LanguageConfiguration extends FileConfiguration {
@Override
public String getString(String path, String def) {
for (String key : values.keySet()) {
if (key.equals(path)) {
return values.get(key);
}
if (values.containsKey(path)) {
return values.get(path);
}
values.put(path, def);