@EventHandler
public void WorldSeterLimitor(WorldInitEvent event) {
World world = event.getWorld();
FileConfiguration config = EscapeLag.configOptimize.getValue();
if (config.getBoolean("WorldSpawnLimitor." + world.getName() + ".enable")) {
world.setMonsterSpawnLimit(config.getInt("WorldSpawnLimitor." + world.getName() + ".PerChunkMonsters"));
world.setAnimalSpawnLimit(config.getInt("WorldSpawnLimitor." + world.getName() + ".PerChunkAnimals"));
world.setAmbientSpawnLimit(config.getInt("WorldSpawnLimitor." + world.getName() + ".PerChunkAmbient"));
EscapeLag.MainThis.getLogger().info("已为世界 " + world.getName() + " 设定了生物刷新速率~");
}
}
WorldSpawnLimiter.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:EscapeLag
作者:
评论列表
文章目录