mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-30 22:44:08 +01:00
Fixes 345
Use the object's name if it already has a display name
This commit is contained in:
parent
7fb20e74f3
commit
bf5132cf93
@ -566,6 +566,13 @@ public class Utils
|
||||
{
|
||||
return "";
|
||||
}
|
||||
// Return the display name if it already has one
|
||||
if (object.hasItemMeta()) {
|
||||
ItemMeta im = object.getItemMeta();
|
||||
if (im.hasDisplayName()) {
|
||||
return im.getDisplayName();
|
||||
}
|
||||
}
|
||||
|
||||
// Find addon structure with:
|
||||
// [addon]:
|
||||
|
Loading…
Reference in New Issue
Block a user