Updated APIv5 DataExtension API (markdown)
parent
da508c5fbd
commit
6fdec25a09
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue