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){ 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]);
if(kit.isList("Armor")) armor = Objects.requireNonNull(kit.getList("Armor")).toArray(new ItemStack[0]);
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"))