mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-16 12:21:25 +01:00
Change
This commit is contained in:
parent
a37716ebeb
commit
33d5a07f29
@ -59,9 +59,9 @@ public class Settings {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public List<String> asList() {
|
||||
public List<String> asList(String path) {
|
||||
List<String> list = new ArrayList<String>();
|
||||
for (DataKey key : config.getKey("npc.default.text").getIntegerSubKeys())
|
||||
for (DataKey key : config.getKey(path).getIntegerSubKeys())
|
||||
list.add(key.getString(""));
|
||||
return list;
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ public class Text extends Trait implements Runnable, Toggleable, ConversationAba
|
||||
}
|
||||
|
||||
private void populateDefaultText() {
|
||||
for (String line : Setting.DEFAULT_TEXT.asList())
|
||||
for (String line : Setting.DEFAULT_TEXT.asList("npc.default.text"))
|
||||
text.add(line);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user