Minor Fix
Dieser Commit ist enthalten in:
Ursprung
d830eb6f47
Commit
24f605daf2
@ -271,7 +271,7 @@ class SWItem_14 {
|
|||||||
ItemStack head = new ItemStack(Material.PLAYER_HEAD, 1);
|
ItemStack head = new ItemStack(Material.PLAYER_HEAD, 1);
|
||||||
SkullMeta headmeta = (SkullMeta) head.getItemMeta();
|
SkullMeta headmeta = (SkullMeta) head.getItemMeta();
|
||||||
assert headmeta != null;
|
assert headmeta != null;
|
||||||
Player p = Bukkit.getPlayer(player);
|
Player p = Bukkit.getPlayerExact(player);
|
||||||
if (p != null) {
|
if (p != null) {
|
||||||
headmeta.setOwningPlayer(p);
|
headmeta.setOwningPlayer(p);
|
||||||
} else {
|
} else {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren