gpt4 book ai didi

com.intellectualcrafters.configuration.file.YamlConfiguration.createSection()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 15:10:31 27 4
gpt4 key购买 nike

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

YamlConfiguration.createSection介绍

暂无

代码示例

代码示例来源:origin: IntellectualSites/PlotSquared

case 2: {
  if (!PS.get().worlds.contains(worldPath)) {
    PS.get().worlds.createSection(worldPath);
    PS.get().worlds.createSection(worldPath);
  if (steps.length != 0) {
    if (!PS.get().worlds.contains(worldPath)) {
      PS.get().worlds.createSection(worldPath);

代码示例来源:origin: IntellectualSites/PlotSquared

@Override
  public void run() {
    String path = "worlds." + pa.worldname;
    if (!PS.get().worlds.contains(path)) {
      PS.get().worlds.createSection(path);
    }
    ConfigurationSection section = PS.get().worlds.getConfigurationSection(path);
    pa.saveConfiguration(section);
    pa.loadConfiguration(section);
    object.plotManager = PS.imp().getPluginName();
    object.setupGenerator = PS.imp().getPluginName();
    String world = SetupUtils.manager.setupWorld(object);
    if (WorldUtil.IMP.isWorld(world)) {
      C.SETUP_FINISHED.send(player);
      player.teleport(WorldUtil.IMP.getSpawn(world));
    } else {
      MainUtil.sendMessage(player, "An error occurred while creating the world: " + pa.worldname);
    }
    try {
      PS.get().worlds.save(PS.get().worldsFile);
    } catch (IOException e) {
      e.printStackTrace();
    }
  }
};

代码示例来源:origin: IntellectualSites/PlotSquared

PS.log(C.PREFIX + "&3 - manager: &7" + plotManager.getClass().getName());
if (!this.worlds.contains(path)) {
  this.worlds.createSection(path);
  worldSection = this.worlds.getConfigurationSection(path);

代码示例来源:origin: IntellectualSites/PlotSquared

ConfigurationSection section = worlds.getConfigurationSection("worlds.*");
if (section == null) {
  section = worlds.createSection("worlds.*");

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