ItemManagement #5
@ -53,7 +53,7 @@ public class MissileWars extends JavaPlugin {
|
||||
Missile.init();
|
||||
new Arrows();
|
||||
new Fireball();
|
||||
new Snowball();
|
||||
new Shield();
|
||||
new Mine();
|
||||
new LandingPad();
|
||||
|
||||
|
@ -6,7 +6,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class Arrows extends SpecialItem {
|
||||
|
||||
private final ItemStack item = createItem(Material.ARROW, "Pfeile", 3);
|
||||
private final ItemStack item = createItem(Material.ARROW, "§ePfeile", 3);
|
||||
|
||||
@Override
|
||||
public ItemStack getItem() {
|
||||
|
@ -7,7 +7,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class Fireball extends SpecialItem {
|
||||
|
||||
private final ItemStack item = createItem(Material.FIRE_CHARGE, "Feuerball", 1);
|
||||
private final ItemStack item = createItem(Material.FIRE_CHARGE, "§eFeuerball", 1);
|
||||
|
||||
@Override
|
||||
public ItemStack getItem() {
|
||||
|
@ -23,7 +23,7 @@ import java.util.Objects;
|
||||
|
||||
public class LandingPad extends SpecialItem {
|
||||
|
||||
private final ItemStack item = createItem(Material.SLIME_BALL, "Landing Pad", 1);
|
||||
private final ItemStack item = createItem(Material.SLIME_BALL, "§aLanding Pad", 1);
|
||||
private static final World world = new BukkitWorld(Bukkit.getWorlds().get(0));
|
||||
private static final File landingPad = new File(MissileWars.getPlugin().getDataFolder(), "landingPad.schem");
|
||||
private final Clipboard clipboard;
|
||||
|
@ -6,7 +6,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class Mine extends SpecialItem {
|
||||
|
||||
private final ItemStack item = createItem(Material.EGG, "Mine", 1);
|
||||
private final ItemStack item = createItem(Material.EGG, "§eMine", 1);
|
||||
|
||||
@Override
|
||||
public ItemStack getItem() {
|
||||
|
@ -47,7 +47,7 @@ public class Missile extends SpecialItem {
|
||||
item = new ItemStack(itemType, 1);
|
||||
ItemMeta meta = item.getItemMeta();
|
||||
assert meta != null;
|
||||
meta.setDisplayName(name);
|
||||
meta.setDisplayName("§c" + name);
|
||||
item.setItemMeta(meta);
|
||||
}
|
||||
|
||||
|
@ -4,9 +4,9 @@ import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class Snowball extends SpecialItem {
|
||||
public class Shield extends SpecialItem {
|
||||
|
||||
private final ItemStack item = createItem(Material.SNOWBALL, "Schild", 1);
|
||||
private final ItemStack item = createItem(Material.SNOWBALL, "§aSchild", 1);
|
||||
|
||||
@Override
|
||||
public ItemStack getItem() {
|
In neuem Issue referenzieren
Einen Benutzer sperren