mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 11:38:26 +01:00
.
This commit is contained in:
parent
10543438bd
commit
0302da1513
@ -93,7 +93,7 @@ public class Settings {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<String> asList() {
|
||||
return (List<String>) value;
|
||||
return value instanceof List<String> ? (List<String>) value : (value = Lists.newArrayList(value));
|
||||
}
|
||||
|
||||
public long asLong() {
|
||||
|
Loading…
Reference in New Issue
Block a user