Updated APIv5 DataExtension API (markdown)

Aurora Lahtela 2022-09-04 08:53:25 +03:00
parent da508c5fbd
commit 6fdec25a09
1 changed files with 2 additions and 1 deletions

@ -428,12 +428,13 @@ public String[] playerJobs(UUID playerUUID) {
public Table banHistory(UUID playerUUID) {
Table.Factory banTable = Table.builder()
.columnOne("When", new Icon(Family.SOLID, "gavel")) // Define column names and icons
.columnOneFormat(TableColumnFormat.DATE_SECOND) // All columns support formatting similar to other Providers (numbers, strings)
.columnTwo("...", new Icon(...)) // Icon colors are ignored.
.columnThree("...", new Icon(...))
.columnFour("...", new Icon(...));
for (YourData data : yourData) {
banTable.addRow(String...);
banTable.addRow(System.currentTimeMillis(), true, "Reason", "...");
}
return banTable.build();