Displayname fix

This commit is contained in:
Sam 2017-04-21 22:52:34 +01:00
parent f9c98ccf8c
commit 82db46c1e6

View File

@ -7,6 +7,7 @@ import mineplex.serverdata.database.DBPool;
import mineplex.serverdata.database.RepositoryBase;
import mineplex.serverdata.database.column.ColumnInt;
import mineplex.serverdata.database.column.ColumnVarChar;
import net.minecraft.server.v1_8_R3.ItemMapEmpty;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
@ -208,7 +209,10 @@ public class PersistenceRepository extends RepositoryBase
constructor.setAccessible(true);
return (ItemMeta) constructor.newInstance(map);
ItemMeta meta = (ItemMeta) constructor.newInstance(map);
meta.setDisplayName((String) ((Map) map).get("displayName"));
return meta;
}
catch (Exception e)
{