mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-10 21:02:47 +01:00
Fixes 345 (#346)
Use the object's name if it already has a display name
This commit is contained in:
parent
7fb20e74f3
commit
e424560c37
@ -566,6 +566,13 @@ public class Utils
|
|||||||
{
|
{
|
||||||
return "";
|
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:
|
// Find addon structure with:
|
||||||
// [addon]:
|
// [addon]:
|
||||||
|
Loading…
Reference in New Issue
Block a user