Update from Git Manager GUI
This commit is contained in:
@@ -33,6 +33,12 @@ public class GivePortalToolCommand implements CommandExecutor {
|
||||
// Erstelle das Item
|
||||
ItemStack wand = new ItemStack(Material.BLAZE_ROD);
|
||||
ItemMeta meta = wand.getItemMeta();
|
||||
if (meta == null) {
|
||||
p.getInventory().addItem(wand);
|
||||
p.sendMessage(plugin.getName() + " §aDu hast das Portal-Werkzeug erhalten!");
|
||||
p.playSound(p.getLocation(), org.bukkit.Sound.ENTITY_ITEM_PICKUP, 1.0f, 1.0f);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Design des Items
|
||||
meta.setDisplayName("§cPortal-Werkzeug");
|
||||
|
||||
Reference in New Issue
Block a user