Codisimus / PhatLoots

Bukkit Plugin which provides highly configurable loot for all
http://codisimus.com/phatloots
18 stars 58 forks source link

Show chest name for those with invalid world #18

Open PikaMug opened 9 years ago

PikaMug commented 9 years ago

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.

Codisimus commented 9 years ago

chestName is simply a copy of what is provided in the config file so each time it would print out rather than the name of the PhatLoot.

Codisimus commented 9 years ago

There might be a different variable that we can use though. Let me take a look.

Codisimus commented 9 years ago

It doesn't even look like that code is called anywhere. It is a private constructor that is not called within that file.

PikaMug commented 9 years ago

That code is called somewhere when the server starts up, when data exists for a chest in a world which has been removed. My server changes worlds often, so any way to identify which chest the warning refers to would be magical.