class Prison{ constructor(){ this.name = "prison"; } static allowView(){ return userrights.has("prison.view"); } static allowAddNew(){ return false; } static allowEdit(){ return false; } static allowDelete(){ return false; } static GetColumns(){ return ["playername","prison","reason","remainingTime","date"] } static TableDataCreate(row, key){ if(key == "date"){ return ` ${row[key]}
${row["officerName"]} `; } else if(key == "remainingTime"){ return ` ${System.convertSecondsToTime(row[key])} `; } else{ return `${row[key]}`; } } }