Fix trust GUI not showing text without chat perm.

Fixes #178
This commit is contained in:
bloodshot 2020-04-30 18:28:40 -04:00
parent 051632eba6
commit 69b37bc95c

View File

@ -290,6 +290,15 @@ public static void showTrustList(Player src, GDClaim claim, GDPlayerData playerD
.append(ChatCaptureUtil.getInstance().createRecordChatComponent(src, claim, playerData, "trustlist", returnCommand))
.build();
}
} else {
footer = TextComponent.empty();
if (messages != null && !messages.isEmpty()) {
for (Component message : messages) {
footer = footer.append(message);
fillSize -= 1;
}
messages.clear();
}
}
for (int i = 0; i < fillSize; i++) {