gpt4 book ai didi

com.sk89q.util.yaml.YAMLProcessor.removeProperty()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 03:32:49 27 4
gpt4 key购买 nike

本文整理了Java中com.sk89q.util.yaml.YAMLProcessor.removeProperty()方法的一些代码示例,展示了YAMLProcessor.removeProperty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAMLProcessor.removeProperty()方法的具体详情如下:
包路径:com.sk89q.util.yaml.YAMLProcessor
类名称:YAMLProcessor
方法名:removeProperty

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);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com