本文整理了Java中com.sk89q.util.yaml.YAMLProcessor.removeProperty()
方法的一些代码示例,展示了YAMLProcessor.removeProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAMLProcessor.removeProperty()
方法的具体详情如下:
包路径:com.sk89q.util.yaml.YAMLProcessor
类名称:YAMLProcessor
方法名:removeProperty
暂无
代码示例来源:origin: EngineHub/WorldEdit
config.removeProperty("dinner-perms");
config.removeProperty("dinnerperms");
isUpdated = true;
代码示例来源:origin: EngineHub/CommandBook
public void run() {
synchronized (sessions) {
for (Map.Entry<Class<? extends CommandSender>, Map<String, Map<Class<? extends PersistentSession>, PersistentSession>>> parent : sessions.entrySet()) {
outer:
for (Iterator<Map.Entry<String, Map<Class<? extends PersistentSession>, PersistentSession>>>
i = parent.getValue().entrySet().iterator(); i.hasNext(); ) {
Map.Entry<String, Map<Class<? extends PersistentSession>, PersistentSession>> entry = i.next();
for (Iterator<PersistentSession> i2 = entry.getValue().values().iterator(); i2.hasNext(); ) {
PersistentSession sess = i2.next();
if (sess.getOwner() != null) {
continue outer;
}
if (!sess.isRecent()) {
i2.remove();
String sender = sess.getUniqueName();
if (sender != null) {
YAMLProcessor processor = getUserConfiguration(getType(parent.getKey()), sender, false);
if (processor != null) {
processor.removeProperty(sess.getClass().getCanonicalName().replaceAll("\\.", "/"));
}
}
}
}
if (entry.getValue().size() == 0) {
i.remove();
}
}
}
}
}
代码示例来源:origin: EngineHub/WorldGuard
config.removeProperty("suppress-tick-sync-warnings");
migrateRegionsToUuid = config.getBoolean("regions.uuid-migration.perform-on-next-start", true);
keepUnresolvedNames = config.getBoolean("regions.uuid-migration.keep-names-that-lack-uuids", true);
useGodGroup = config.getBoolean("auto-invincible-group", false);
useAmphibiousGroup = config.getBoolean("auto-no-drowning-group", false);
config.removeProperty("auto-invincible-permission");
usePlayerMove = config.getBoolean("use-player-move-event", true);
usePlayerTeleports = config.getBoolean("use-player-teleports", true);
内容来源于网络,如有侵权,请联系作者删除!