This commit is contained in:
Brianna 2019-04-04 13:30:38 -04:00
parent a895ba6f4d
commit 08492c23d3

View File

@ -1,7 +1,6 @@
package com.songoda.ultimatemoderation.gui;
import com.songoda.ultimatemoderation.UltimateModeration;
import com.songoda.ultimatemoderation.punish.PunishmentNote;
import com.songoda.ultimatemoderation.punish.PunishmentType;
import com.songoda.ultimatemoderation.punish.player.PlayerPunishData;
import com.songoda.ultimatemoderation.tickets.TicketStatus;
@ -74,8 +73,8 @@ public class GUIPlayers extends AbstractGUI {
lore.add(plugin.getLocale().getMessage("gui.players.click"));
lore.add("");
int ticketAmt = plugin.getTicketManager().getTicketsAbout(pl).stream()
.filter(t -> t.getStatus() == TicketStatus.OPEN).collect(Collectors.toList()).size();
int ticketAmt = (int) plugin.getTicketManager().getTicketsAbout(pl).stream()
.filter(t -> t.getStatus() == TicketStatus.OPEN).count();
if (ticketAmt == 0)
lore.add(plugin.getLocale().getMessage("gui.players.notickets"));