Fix Leader remove on /team #135
@ -264,6 +264,11 @@ public class TeamCommand extends BasicCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (team.getTeamLeader() == target.getId()) {
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cLeader entfernen sich nicht selbst");
|
||||
return;
|
||||
}
|
||||
|
||||
if(teamInvitations.containsKey(target.getId())){
|
||||
if(teamInvitations.get(target.getId()).remove((Integer) team.getTeamId())){
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§7Die Einladung wurde zurückgezogen");
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren