From ae4f206c5fbcfdd4d1f105f0a49c72233493c7f3 Mon Sep 17 00:00:00 2001 From: FlyingPikachu Date: Tue, 5 May 2015 11:36:51 -0400 Subject: [PATCH] Show chest name for those with invalid world Will help the user to edit or remove the afflicted PhatLoot, especially if there are multiple chests in the same world. Have not tested this, but I assume chestName is not empty at this point. --- src/com/codisimus/plugins/phatloots/PhatLootChest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/codisimus/plugins/phatloots/PhatLootChest.java b/src/com/codisimus/plugins/phatloots/PhatLootChest.java index 3d8191d8..f8318bde 100644 --- a/src/com/codisimus/plugins/phatloots/PhatLootChest.java +++ b/src/com/codisimus/plugins/phatloots/PhatLootChest.java @@ -77,7 +77,7 @@ private PhatLootChest(String world, int x, int y, int z) { World w = Bukkit.getWorld(world); if (w == null) { //The world is not currently loaded PhatLoots.logger.warning("The world '" + world + "' is not currently loaded, all linked chests in this world are being unlinked."); - PhatLoots.logger.warning("THIS CHEST UNLINKING IS PERMANANT IF YOU LINK/UNLINK ANY OTHER CHESTS IN THIS PHATLOOT!"); + PhatLoots.logger.warning("THIS CHEST UNLINKING IS PERMANANT IF YOU LINK/UNLINK ANY OTHER CHESTS IN THIS PHATLOOT! (" + this.chestName + ")"); } else { Block block = w.getBlockAt(x, y, z); switch (block.getType()) {