mirror of
https://github.com/Flowsqy/ShopChest.git
synced 2025-02-02 11:31:20 +01:00
Use hashmaps advantage
This commit is contained in:
parent
7c3057162a
commit
00a04cb3a9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user