From e4ad18e4ba7f5d37169701408b710a124a2733e4 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Wed, 24 Jun 2020 00:32:52 +0200 Subject: [PATCH] Fix /dxl rename NPE; resolves #752 --- .../main/java/de/erethon/dungeonsxl/command/RenameCommand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/de/erethon/dungeonsxl/command/RenameCommand.java b/core/src/main/java/de/erethon/dungeonsxl/command/RenameCommand.java index e0867fa6..a331d0f3 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/command/RenameCommand.java +++ b/core/src/main/java/de/erethon/dungeonsxl/command/RenameCommand.java @@ -66,6 +66,9 @@ public class RenameCommand extends DCommand { } for (Dungeon dungeon : plugin.getDungeonRegistry()) { + if (!dungeon.isMultiFloor()) { + continue; + } DungeonConfig dConfig = ((DDungeon) dungeon).getConfig(); FileConfiguration config = dConfig.getConfig(); File file = dConfig.getFile();