geforkt von SteamWar/BungeeCore
Hotfix Teamcommand
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
fae81c9c4a
Commit
d5351a379c
@ -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]",
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren