SteamWar/FightSystem
Archiviert
13
1

Not stable version

Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Yaruma3341 2019-02-23 20:56:20 +01:00
Ursprung 3dc213c5fa
Commit bf0ffb5684
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -97,6 +97,7 @@ public class FightTeam {
public void setLeader(FightPlayer leader) { public void setLeader(FightPlayer leader) {
this.leader = leader; this.leader = leader;
if(!this.players.contains(leader)) this.players.add(leader);
} }
public ArrayList<FightPlayer> getPlayers() { public ArrayList<FightPlayer> getPlayers() {

Datei anzeigen

@ -32,7 +32,7 @@ public class PlayerChatListener implements Listener {
Bukkit.broadcastMessage(prefixColorCode + teamName + " " + player.getName() + " §8» §7" + message); Bukkit.broadcastMessage(prefixColorCode + teamName + " " + player.getName() + " §8» §7" + message);
} }
}else{ }else{
Bukkit.broadcastMessage("§7" + player.getName() + " §8» §7" + message); Bukkit.broadcastMessage("§7" + player.getName() + " §8» §7" + message.substring(1));
} }
event.setCancelled(true); event.setCancelled(true);