Merge pull request 'Use Cache for Skulls' (#101) from optimize_skulls into master
Reviewed-on: #101 Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Commit
46937d456e
@ -19,6 +19,7 @@
|
||||
|
||||
package de.steamwar.inventory;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.SkullMeta;
|
||||
@ -269,7 +270,7 @@ class SWItem_14 {
|
||||
ItemStack head = new ItemStack(Material.PLAYER_HEAD, 1);
|
||||
SkullMeta headmeta = (SkullMeta) head.getItemMeta();
|
||||
assert headmeta != null;
|
||||
headmeta.setOwner(player);
|
||||
headmeta.setOwningPlayer(Bukkit.getOfflinePlayer(player));
|
||||
headmeta.setDisplayName(player);
|
||||
head.setItemMeta(headmeta);
|
||||
return head;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren