SteamWar/FightSystem
Archiviert
13
1

Revert "Make Armor Mandatory in yaml kits."
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

This reverts commit a8112eccc8.
Dieser Commit ist enthalten in:
Lixfel 2023-11-29 15:35:33 +01:00
Ursprung a8112eccc8
Commit 86de472fe0

Datei anzeigen

@ -104,7 +104,10 @@ public class Kit {
public Kit(ConfigurationSection kit){ public Kit(ConfigurationSection kit){
name = kit.getName(); name = kit.getName();
inventory = Objects.requireNonNull(kit.getList("Items")).toArray(new ItemStack[0]); inventory = Objects.requireNonNull(kit.getList("Items")).toArray(new ItemStack[0]);
armor = Objects.requireNonNull(kit.getList("Armor")).toArray(new ItemStack[0]); if(kit.isList("Armor"))
armor = Objects.requireNonNull(kit.getList("Armor")).toArray(new ItemStack[0]);
else
armor = null;
leaderAllowed = kit.getBoolean("LeaderAllowed"); leaderAllowed = kit.getBoolean("LeaderAllowed");
memberAllowed = kit.getBoolean("MemberAllowed"); memberAllowed = kit.getBoolean("MemberAllowed");
if(kit.isList("Effects")) if(kit.isList("Effects"))