From e2eba79378c3ec747f6e7165383d7fb26d76029d Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Sun, 4 Apr 2021 16:40:35 +0200 Subject: [PATCH] Add distribute items on team leave --- src/de/steamwar/misslewars/MWTeam.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/de/steamwar/misslewars/MWTeam.java b/src/de/steamwar/misslewars/MWTeam.java index 5af49c9..2bd81a0 100644 --- a/src/de/steamwar/misslewars/MWTeam.java +++ b/src/de/steamwar/misslewars/MWTeam.java @@ -54,7 +54,7 @@ public class MWTeam { private final Location spawn; private final int portalZ; - private final LinkedList players = new LinkedList<>(); + private final LinkedList players = new LinkedList<>(); private final Set openInvitations = new HashSet<>(); MWTeam(ChatColor color, Location spawn, String teamName, int portalZ) { @@ -62,7 +62,7 @@ public class MWTeam { this.color = color; this.spawn = spawn; this.portalZ = portalZ; - if (FightScoreboard.getScoreboard().getTeam(teamName) == null) + if(FightScoreboard.getScoreboard().getTeam(teamName) == null) sbteam = FightScoreboard.getScoreboard().registerNewTeam(teamName); else sbteam = FightScoreboard.getScoreboard().getTeam(teamName); @@ -108,7 +108,7 @@ public class MWTeam { return portalZ; } - public Location getSpawn() { + public Location getSpawn(){ return spawn; } @@ -165,7 +165,7 @@ public class MWTeam { return MissileWars.getRedTeam(); } - public String getColorCode() { + public String getColorCode(){ return "ยง" + color.getChar(); }