SteamWar/FightSystem
Archiviert
13
1

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

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-11-29 15:34:07 +01:00
Ursprung 70c86f40c6
Commit a8112eccc8

Datei anzeigen

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