Archiviert
1
0

Hotfix Teamcommand

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-05-23 21:30:20 +02:00
Ursprung fae81c9c4a
Commit d5351a379c

Datei anzeigen

@ -386,7 +386,7 @@ public class TeamCommand extends BasicCommand {
page = 1;
List<Team> all = Team.getAll();
final int lastPage = (all.size() - 1) / 10;
final int lastPage = ((all.size() - 1) / 10) + 1;
if(page < 1 || page > lastPage){
BungeeCore.send(player, "§cUngültige Seitenzahl angegeben");
return;
@ -394,7 +394,7 @@ public class TeamCommand extends BasicCommand {
BungeeCore.send(player, "§7§lTeamliste §7" + page + "§8/§7" + lastPage);
for(int i = page * TEAMS_PER_PAGE; i < page * TEAMS_PER_PAGE + TEAMS_PER_PAGE && i < all.size(); i++){
for(int i = (page-1) * TEAMS_PER_PAGE; i < (page-1) * TEAMS_PER_PAGE + TEAMS_PER_PAGE && i < all.size(); i++){
Team tm = all.get(i);
BungeeCore.send(player,
"§8" + tm.getTeamKuerzel() + " §e" + tm.getTeamName() + " §8[§7" + SteamwarUser.get(tm.getTeamLeader()).getUserName() + "§8]",