xXSchrandXx
Schafhirte
Hi,
ich habe für mein Plugin eine ConcurrentHashMap<String, WorldData> (gesetzt in WorldConfigManager.loadAllWorlddatas mit WorldConfigManager.setWorldData).
Jedoch bekomme ich jedesmal bei WorldConfigManager.getWorlddataFromName die WorldData, welche mit den Key vom String "world" gesetzt wurde...
Wo habe ich den Fehler??
Danke schon mal für eure Hilfe, und entschuldigt, dass die WorldConfigManager Class so unaufgeräumt ist...
Mit freundlichem Gruß
xXSchrandXx
ich habe für mein Plugin eine ConcurrentHashMap<String, WorldData> (gesetzt in WorldConfigManager.loadAllWorlddatas mit WorldConfigManager.setWorldData).
YAML:
...
[Server thread/INFO]: Debug: Storage.setWorldData | Setting test1
WorldData{WorldName=test1, Environment=NORMAL, Aliases=[test1], AllowAnimalSpawning=true, AllowMonsterSpawning=true, AmbientLimit=15, AnimalLimit=10, AutoLoad=true, AutoSave=true, CreationType=normal, Difficulty=EASY, disabledEntities=[], EnableCommandBlocks=false, GameMode=SURVIVAL, Gamerule={Rule{key=doInsomnia, type=class java.lang.Boolean}=true, Rule{key=doEntityDrops, type=class java.lang.Boolean}=true, Rule{key=spawnRadius, type=class java.lang.Integer}=10, Rule{key=drowningDamage, type=class java.lang.Boolean}=true, Rule{key=fallDamage, type=class java.lang.Boolean}=true, Rule{key=doWeatherCycle, type=class java.lang.Boolean}=true, Rule{key=disableRaids, type=class java.lang.Boolean}=false, Rule{key=logAdminCommands, type=class java.lang.Boolean}=true, Rule{key=maxCommandChainLength, type=class java.lang.Integer}=65536, Rule{key=sendCommandFeedback, type=class java.lang.Boolean}=true, Rule{key=spectatorsGenerateChunks, type=class java.lang.Boolean}=true, Rule{key=doImmediateRespawn, type=class java.lang.Boolean}=false, Rule{key=doLimitedCrafting, type=class java.lang.Boolean}=false, Rule{key=keepInventory, type=class java.lang.Boolean}=false, Rule{key=announceAdvancements, type=class java.lang.Boolean}=true, Rule{key=randomTickSpeed, type=class java.lang.Integer}=3, Rule{key=commandBlockOutput, type=class java.lang.Boolean}=true, Rule{key=fireDamage, type=class java.lang.Boolean}=true, Rule{key=naturalRegeneration, type=class java.lang.Boolean}=true, Rule{key=doMobSpawning, type=class java.lang.Boolean}=true, Rule{key=mobGriefing, type=class java.lang.Boolean}=true, Rule{key=doFireTick, type=class java.lang.Boolean}=true, Rule{key=showDeathMessages, type=class java.lang.Boolean}=true, Rule{key=disableElytraMovementCheck, type=class java.lang.Boolean}=false, Rule{key=doTileDrops, type=class java.lang.Boolean}=true, Rule{key=reducedDebugInfo, type=class java.lang.Boolean}=false, Rule{key=maxEntityCramming, type=class java.lang.Integer}=24, Rule{key=doMobLoot, type=class java.lang.Boolean}=true, Rule{key=doDaylightCycle, type=class java.lang.Boolean}=true}, Generator=null, generateStructures=true, Hardcore=false, KeepSpawninMemory=false, MonsterLimit=70, PITCH=0.0, PvP=true, Seed=3390652174426575371, Storm=false, Thunder=false, ThunderDuration?=0, TicksPerAmbientSpawns=1, TicksPerAnimalSpawns=400, TicksPerMonsterSpawns=1, TicksPerWaterSpawns=1, Time=0, WaterAnimalLimit=15, WeatherDuration=0, WorldType=NORMAL, X=80.0, Y=66.0, YAW=0.0, Z=16.0}
...
[Server thread/INFO]: Debug: Storage.setWorldData | Setting world
WorldData{WorldName=world, Environment=NORMAL, Aliases=[world], AllowAnimalSpawning=true, AllowMonsterSpawning=true, AmbientLimit=15, AnimalLimit=10, AutoLoad=false, AutoSave=true, CreationType=normal, Difficulty=EASY, disabledEntities=[], EnableCommandBlocks=false, GameMode=SURVIVAL, Gamerule={Rule{key=doInsomnia, type=class java.lang.Boolean}=true, Rule{key=doEntityDrops, type=class java.lang.Boolean}=true, Rule{key=spawnRadius, type=class java.lang.Integer}=10, Rule{key=drowningDamage, type=class java.lang.Boolean}=true, Rule{key=fallDamage, type=class java.lang.Boolean}=true, Rule{key=doWeatherCycle, type=class java.lang.Boolean}=true, Rule{key=disableRaids, type=class java.lang.Boolean}=false, Rule{key=logAdminCommands, type=class java.lang.Boolean}=true, Rule{key=maxCommandChainLength, type=class java.lang.Integer}=65536, Rule{key=sendCommandFeedback, type=class java.lang.Boolean}=true, Rule{key=spectatorsGenerateChunks, type=class java.lang.Boolean}=true, Rule{key=doImmediateRespawn, type=class java.lang.Boolean}=false, Rule{key=doLimitedCrafting, type=class java.lang.Boolean}=false, Rule{key=keepInventory, type=class java.lang.Boolean}=false, Rule{key=announceAdvancements, type=class java.lang.Boolean}=true, Rule{key=randomTickSpeed, type=class java.lang.Integer}=3, Rule{key=commandBlockOutput, type=class java.lang.Boolean}=true, Rule{key=fireDamage, type=class java.lang.Boolean}=true, Rule{key=naturalRegeneration, type=class java.lang.Boolean}=true, Rule{key=doMobSpawning, type=class java.lang.Boolean}=true, Rule{key=mobGriefing, type=class java.lang.Boolean}=true, Rule{key=doFireTick, type=class java.lang.Boolean}=true, Rule{key=showDeathMessages, type=class java.lang.Boolean}=true, Rule{key=disableElytraMovementCheck, type=class java.lang.Boolean}=false, Rule{key=reducedDebugInfo, type=class java.lang.Boolean}=false, Rule{key=doTileDrops, type=class java.lang.Boolean}=true, Rule{key=maxEntityCramming, type=class java.lang.Integer}=24, Rule{key=doMobLoot, type=class java.lang.Boolean}=true, Rule{key=doDaylightCycle, type=class java.lang.Boolean}=true}, Generator=null, generateStructures=true, Hardcore=false, KeepSpawninMemory=true, MonsterLimit=70, PITCH=0.0, PvP=true, Seed=3390652174426575371, Storm=true, Thunder=false, ThunderDuration?=48027, TicksPerAmbientSpawns=1, TicksPerAnimalSpawns=400, TicksPerMonsterSpawns=1, TicksPerWaterSpawns=1, Time=8209, WaterAnimalLimit=15, WeatherDuration=14222, WorldType=NORMAL, X=0.0, Y=0.0, YAW=0.0, Z=0.0}
...
YAML:
...
[Craft Scheduler Thread - 3/INFO]: Debug: WorldConfigManager.getWorlddataFromName | Getting WorldData for test1
WorldData{WorldName=world, Environment=NORMAL, Aliases=[world], AllowAnimalSpawning=true, AllowMonsterSpawning=true, AmbientLimit=15, AnimalLimit=10, AutoLoad=false, AutoSave=true, CreationType=normal, Difficulty=EASY, disabledEntities=[], EnableCommandBlocks=false, GameMode=SURVIVAL, Gamerule={Rule{key=doInsomnia, type=class java.lang.Boolean}=true, Rule{key=doEntityDrops, type=class java.lang.Boolean}=true, Rule{key=spawnRadius, type=class java.lang.Integer}=10, Rule{key=drowningDamage, type=class java.lang.Boolean}=true, Rule{key=fallDamage, type=class java.lang.Boolean}=true, Rule{key=doWeatherCycle, type=class java.lang.Boolean}=true, Rule{key=disableRaids, type=class java.lang.Boolean}=false, Rule{key=logAdminCommands, type=class java.lang.Boolean}=true, Rule{key=maxCommandChainLength, type=class java.lang.Integer}=65536, Rule{key=sendCommandFeedback, type=class java.lang.Boolean}=true, Rule{key=spectatorsGenerateChunks, type=class java.lang.Boolean}=true, Rule{key=doImmediateRespawn, type=class java.lang.Boolean}=false, Rule{key=doLimitedCrafting, type=class java.lang.Boolean}=false, Rule{key=keepInventory, type=class java.lang.Boolean}=false, Rule{key=announceAdvancements, type=class java.lang.Boolean}=true, Rule{key=randomTickSpeed, type=class java.lang.Integer}=3, Rule{key=commandBlockOutput, type=class java.lang.Boolean}=true, Rule{key=fireDamage, type=class java.lang.Boolean}=true, Rule{key=naturalRegeneration, type=class java.lang.Boolean}=true, Rule{key=doMobSpawning, type=class java.lang.Boolean}=true, Rule{key=mobGriefing, type=class java.lang.Boolean}=true, Rule{key=doFireTick, type=class java.lang.Boolean}=true, Rule{key=showDeathMessages, type=class java.lang.Boolean}=true, Rule{key=disableElytraMovementCheck, type=class java.lang.Boolean}=false, Rule{key=reducedDebugInfo, type=class java.lang.Boolean}=false, Rule{key=doTileDrops, type=class java.lang.Boolean}=true, Rule{key=maxEntityCramming, type=class java.lang.Integer}=24, Rule{key=doMobLoot, type=class java.lang.Boolean}=true, Rule{key=doDaylightCycle, type=class java.lang.Boolean}=true}, Generator=null, generateStructures=true, Hardcore=false, KeepSpawninMemory=true, MonsterLimit=70, PITCH=0.0, PvP=true, Seed=3390652174426575371, Storm=true, Thunder=false, ThunderDuration?=48027, TicksPerAmbientSpawns=1, TicksPerAnimalSpawns=400, TicksPerMonsterSpawns=1, TicksPerWaterSpawns=1, Time=8209, WaterAnimalLimit=15, WeatherDuration=14222, WorldType=NORMAL, X=0.0, Y=0.0, YAW=0.0, Z=0.0}
...
[Craft Scheduler Thread - 3/INFO]: Debug: WorldConfigManager.getWorlddataFromName | Getting WorldData for world
WorldData{WorldName=world, Environment=NORMAL, Aliases=[world], AllowAnimalSpawning=true, AllowMonsterSpawning=true, AmbientLimit=15, AnimalLimit=10, AutoLoad=false, AutoSave=true, CreationType=normal, Difficulty=EASY, disabledEntities=[], EnableCommandBlocks=false, GameMode=SURVIVAL, Gamerule={Rule{key=doInsomnia, type=class java.lang.Boolean}=true, Rule{key=doEntityDrops, type=class java.lang.Boolean}=true, Rule{key=spawnRadius, type=class java.lang.Integer}=10, Rule{key=drowningDamage, type=class java.lang.Boolean}=true, Rule{key=fallDamage, type=class java.lang.Boolean}=true, Rule{key=doWeatherCycle, type=class java.lang.Boolean}=true, Rule{key=disableRaids, type=class java.lang.Boolean}=false, Rule{key=logAdminCommands, type=class java.lang.Boolean}=true, Rule{key=maxCommandChainLength, type=class java.lang.Integer}=65536, Rule{key=sendCommandFeedback, type=class java.lang.Boolean}=true, Rule{key=spectatorsGenerateChunks, type=class java.lang.Boolean}=true, Rule{key=doImmediateRespawn, type=class java.lang.Boolean}=false, Rule{key=doLimitedCrafting, type=class java.lang.Boolean}=false, Rule{key=keepInventory, type=class java.lang.Boolean}=false, Rule{key=announceAdvancements, type=class java.lang.Boolean}=true, Rule{key=randomTickSpeed, type=class java.lang.Integer}=3, Rule{key=commandBlockOutput, type=class java.lang.Boolean}=true, Rule{key=fireDamage, type=class java.lang.Boolean}=true, Rule{key=naturalRegeneration, type=class java.lang.Boolean}=true, Rule{key=doMobSpawning, type=class java.lang.Boolean}=true, Rule{key=mobGriefing, type=class java.lang.Boolean}=true, Rule{key=doFireTick, type=class java.lang.Boolean}=true, Rule{key=showDeathMessages, type=class java.lang.Boolean}=true, Rule{key=disableElytraMovementCheck, type=class java.lang.Boolean}=false, Rule{key=reducedDebugInfo, type=class java.lang.Boolean}=false, Rule{key=doTileDrops, type=class java.lang.Boolean}=true, Rule{key=maxEntityCramming, type=class java.lang.Integer}=24, Rule{key=doMobLoot, type=class java.lang.Boolean}=true, Rule{key=doDaylightCycle, type=class java.lang.Boolean}=true}, Generator=null, generateStructures=true, Hardcore=false, KeepSpawninMemory=true, MonsterLimit=70, PITCH=0.0, PvP=true, Seed=3390652174426575371, Storm=true, Thunder=false, ThunderDuration?=48027, TicksPerAmbientSpawns=1, TicksPerAnimalSpawns=400, TicksPerMonsterSpawns=1, TicksPerWaterSpawns=1, Time=8209, WaterAnimalLimit=15, WeatherDuration=14222, WorldType=NORMAL, X=0.0, Y=0.0, YAW=0.0, Z=0.0}
...
Danke schon mal für eure Hilfe, und entschuldigt, dass die WorldConfigManager Class so unaufgeräumt ist...
Mit freundlichem Gruß
xXSchrandXx
Zuletzt bearbeitet: