Dieser Commit ist enthalten in:
Ursprung
d280622778
Commit
c857f33c97
@ -35,7 +35,7 @@ import org.bukkit.scoreboard.Team;
|
||||
import java.util.*;
|
||||
|
||||
public class MWTeam {
|
||||
private static final ItemStack bow = new ItemStack(Material.BOW);
|
||||
public static final ItemStack bow = new ItemStack(Material.BOW);
|
||||
|
||||
static {
|
||||
ItemMeta bowMeta = Objects.requireNonNull(bow.getItemMeta());
|
||||
|
@ -89,6 +89,10 @@ public class ItemListener extends BasicListener {
|
||||
e.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
if (e.getItemDrop().getItemStack().isSimilar(MWTeam.bow)) {
|
||||
e.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
if (mwTeam == MissileWars.getRedTeam()) {
|
||||
RED_ITEMS.add(e.getItemDrop().getEntityId());
|
||||
} else {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren