mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-26 01:51:40 +01:00
Update comments method
This commit is contained in:
parent
92cb74b7eb
commit
8571f3e163
@ -11,11 +11,11 @@ import com.google.common.collect.Lists;
|
||||
|
||||
import net.citizensnpcs.api.CitizensAPI;
|
||||
import net.citizensnpcs.api.util.DataKey;
|
||||
import net.citizensnpcs.api.util.MemoryDataKey;
|
||||
import net.citizensnpcs.api.util.Messaging;
|
||||
import net.citizensnpcs.api.util.SpigotUtil;
|
||||
import net.citizensnpcs.api.util.Storage;
|
||||
import net.citizensnpcs.api.util.YamlStorage;
|
||||
import net.citizensnpcs.api.util.YamlStorage.YamlKey;
|
||||
import net.citizensnpcs.util.Util;
|
||||
|
||||
public class Settings {
|
||||
@ -367,7 +367,7 @@ public class Settings {
|
||||
private void setComments(DataKey root) {
|
||||
if (SUPPORTS_SET_COMMENTS && root.keyExists(path)) {
|
||||
try {
|
||||
((YamlKey) root).getSection("").setComments(path,
|
||||
((MemoryDataKey) root).getSection("").setComments(path,
|
||||
comments == null ? null : Arrays.asList(comments.split("<br>")));
|
||||
} catch (Throwable t) {
|
||||
SUPPORTS_SET_COMMENTS = false;
|
||||
|
Loading…
Reference in New Issue
Block a user