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
|
@Override
|
||||||
public String getString(String path, String def) {
|
public String getString(String path, String def) {
|
||||||
for (String key : values.keySet()) {
|
if (values.containsKey(path)) {
|
||||||
if (key.equals(path)) {
|
return values.get(path);
|
||||||
return values.get(key);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
values.put(path, def);
|
values.put(path, def);
|
||||||
|
Loading…
Reference in New Issue
Block a user