Browse Source

Adding TeamType.java

RedstoneFuture 1 year ago
parent
commit
beda9b5e8e

+ 1 - 0
missilewars-plugin/src/main/java/de/butzlabben/missilewars/game/Team.java

@@ -51,6 +51,7 @@ public class Team {
     private final String name;
     private final String name;
     private final String color;
     private final String color;
     private final Game game;
     private final Game game;
+    private final transient TeamType teamType;
     private final transient ArrayList<MWPlayer> members = new ArrayList<>();
     private final transient ArrayList<MWPlayer> members = new ArrayList<>();
     @Setter private Location spawn;
     @Setter private Location spawn;
     @Setter private transient GameResult gameResult = GameResult.DRAW;
     @Setter private transient GameResult gameResult = GameResult.DRAW;

+ 29 - 0
missilewars-plugin/src/main/java/de/butzlabben/missilewars/game/enums/TeamType.java

@@ -0,0 +1,29 @@
+/*
+ * This file is part of MissileWars (https://github.com/Butzlabben/missilewars).
+ * Copyright (c) 2018-2021 Daniel Nägele.
+ *
+ * MissileWars is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * MissileWars is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with MissileWars.  If not, see <https://www.gnu.org/licenses/>.
+ */
+
+package de.butzlabben.missilewars.game.enums;
+
+/**
+ * @author Butzlabben
+ * @since 01.01.2018
+ */
+public enum TeamType {
+    
+    PLAYER,
+    SPECTATOR
+}