DRE2N / DungeonsXL

Create custom dungeons and adventure maps with ease!
https://www.spigotmc.org/resources/dungeonsxl.9488/
GNU General Public License v3.0
152 stars 84 forks source link

New dungeon creation errors #1106

Open ICEconchy opened 1 year ago

ICEconchy commented 1 year ago

Description

Created a new dungeon following the wiki and everything went fine had console spam and error upon reloading plugin for floor config

Reproduce

(List steps to reproduce, e.g.:

  1. Create a new dungeon with /dxl create
  2. Place [ready] sign, [mob]/gigas/1,1,MM/D 20 sign
  3. Leave edit mode with /dxl leave
  4. Test with /dxl play
  5. Trigger ready sign and get close to the location of the mob spawn sign.
  6. Edit config in map directory. Get error

Expected behavior

For the plugin to not throw errors and for a mythics mobs to spawn

Relevant configuration files

#########################
# MAP SPECIFIC SETTINGS #
#########################

# Defines the map environment, as this is not saved in the map itself.
# May be set to either THE_END, NETHER or NORMAL.
# If this setting is left out (or if no floor config is used at all), NORMAL will be used.
# NORMAL stores region files in {map}/regions,
# NETHER in {map}/DIM-1/regions and
# THE_END in {map}/DIM1/regions.
# CraftBukkit usually splits dimensions into separate world folders,
# but keeps this folder structure.
worldEnvironment: THE_END

# Players who can edit the dungeon (/dxl invite)
# You my add both UUIDs and names.
invitedPlayers:
  - ICEconchy

##############
# GAME RULES #
##############

# Time until a player is kicked from this dungeon after going offline (in seconds)
# -1 = never / 0 = immediately
timeUntilKickOfflinePlayer: 600

# Time until a player can get loot for another time
timeToNextLoot: 12

# Time until a new mob waves begins when enough mobs are killed.
timeToNextWave: 10

# See https://github.com/DRE2N/DungeonsXL/wiki/game-goal for more information.
gameGoal:
  type: END
  # Dungeons can be played with a timer.
  # If the group has no time left, the players get kicked.
  timeToFinish: 1200

# The game mode, SURVIVAL if nothing
gameMode: ADVENTURE

# If players may fly.
fly: false

# PvP
playerVersusPlayer: false
# Friendly fire refers just to members of the same group
friendlyFire: false

# These commands can be used by all players if they are in the dungeon.
# DXL commands like /dxl leave are included by default.
gameCommandWhitelist:
  - version
  - f list
  - f show
  - ch global

# Max time in hours after the last finish of one of the Dungeons above
timeLastPlayed: 5

# Where the player respawns when he leaves the dungeon without finishing the game.
escapeLocation: "Spawn,7,80,-3,-89.4,-1.8"
# Where the player respawns when he finishs the game.
finishLocation: "Spawn,7,80,-3,-89.4,-1.8"

# A list of requirements
# Note that requirements will be ignored if the player has the
# dxl.ignorerequirements permission node.
requirements:
  # Dungeon can only be played on a friday and from sunday to tuesday respectively at 15-16 o'clock.
  # Note that the week in the Java Calendar API begins with sunday, so SATURDAY-SUNDAY does not work.
#  timeframe:
#    - "FRIDAY"
#    - "SUNDAY-TUESDAY"
#    - "15-16"
  # Time in hours until a player can play this dungeon again
  # This prevents players from playing the dungeon again if they started the dungeon,
  # no matter if they finished, left it or got kicked.
  timeSinceStart: 0.5 # 3 minutes
  # This only prevents players from playing the dungeon again if they finished it correctly.
  # If they leave it or get kicked, players can always retry a dungeon.
  timeSinceFinish: 24.0
  # Players must have finished all of the following dungeons at least once:
  #finishedDungeons:
  #  - Test1       # Test1
  #  - Test2/Test3 # AND EITHER Test2 and Test3
  #  - 7:Test4     # and Test4 within the last 7 hours
  #  - 0.05:Test5  # and Test5 within the last 3 minutes
  #feeMoney: 7.5
  #feeLevel: 2
  # If the group has too many or not enough members, the players will not be allowed to use the ready sign.
  groupSize:
    minimum: 1
    maximum: 2
  # Players must have these permission nodes to enter the dungeon:
  #permission:
  #  - my.custom.node
  #  - yet.another.node
  # Items that may not be taken into the dungeon
  forbiddenItems:
    - TNT
    - ELYTRA
  # Items the player must have to play the dungeon
  #keyItems:
  #  - GOLD_INGOT
  #  - MY_CUSTOM_ITEM

# Shall players play the dungeon with their own items or do you want to use classes?
keepInventoryOnEnter: true
# Shall players lose their items when they die (do not mix up this with "onEscape"!)?
keepInventoryOnDeath: true
# Shall players keep their inventory when they finish the dungeon?
keepInventoryOnFinish: true
# Shall players keep their inventory when they leave the dungeon without succeeding?
keepInventoryOnEscape: true

# If players can destroy blocks in this world.
# (The following rule can be either a boolean, "placed" or a whitelist of blocks to break.)
breakBlocks: false
# OR: Players may break blocks they placed themselves, but no other blocks.
#breakBlocks: false
# OR: A whitelist of breakable blocks.
#breakBlocks:
  # A material value and a list of all tools that can destroy this block
 # SPONGE: ["IRON_PICKAXE", "STICK"]
  # Dirt blocks can be destroyed with any tool
  #DIRT: []

# A list of all entity types that shall be protected from damage.
# If this is left out AND if breakBlocks is false, armor stands, paintings
# and item frames will be protected by default.
# If this is left out and if breakBlocks is true, nothing will be protected by default.
#damageProtectedEntities:
#  - SLIME
  - PAINTING
# A list of all entity types 
# If this is left out AND if breakBlocks is false, armor stands
# and item frames will be protected by default.
# If this is left out and if breakBlocks is true, nothing will be protected by default.
interactionProtectedEntities:
#  - ARMOR_STAND

# If blocks may be placed.
# (The following rule can be either a boolean or a whitelist of blocks to place.)
placeBlocks: true
# OR: A whitelist of placeable blocks.
#placeBlocks:
#  - SPONGE

# = Vanilla doFireTick
fireTick: false

# Blocks that don't fade away.
blockFadeDisabled:
  - ICE
  - OAK_LEAVES

# Enables EXP drops of all mobs.
mobExpDrops: true
# Or alternatively, a whitelist of mob types that may drop EXP can be used:
#mobExpDrops:
#  - COW
#  - SHEEP
# The item drop rule works the same way:
mobItemDrops: true
# or:
#mobItemDrops:
#  - COW
#  - SHEEP

# Amount of lives a player initially has when he enters a dungeon
initialLives: 3
# Alternatively, you can use group lives.
#initialGroupLives: 5

# Messages also to be created with /dxl msg
messages:
  '1': So you wish to challange Gigas?
  '2': Good Luck!

# Items you cannot drop or destroy
#secureObjects:
#  - 69

# A list of permissions players get while they play the game.
# The permissions get removed as soon as the player leaves the game.
# Requires Vault and a permissions plugin like PermissionsEx.
#gamePermissions:
#  - dxl.reload
#  - another.node

# Use this to replace the default ready / new floor message.
# This is fully compatible with the override system.
# If titles are deactivated in the main config, this is not going to work.

# If it should rain permanently in the dungeon
# true = permanent rain
# false = permanent sun
# leaving this out = random weather like in vanilla Minecraft
rain: false

# Same principle as above but for thunderstorms
thunder: false

# The time ticks (to be used like in the vanilla /time command)
time: 6013
Sataniel98 commented 1 year ago

The YAML is syntactically wrong, see https://yamllint.com