File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
java/dansplugins/activitytracker/commands Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public class ListCommand extends AbstractPluginCommand {
2323 private final PersistentData persistentData ;
2424
2525 public ListCommand (PersistentData persistentData ) {
26- super (new ArrayList <>(Arrays .asList ("list" )), new ArrayList <>(Arrays .asList ("at.admin " )));
26+ super (new ArrayList <>(Arrays .asList ("list" )), new ArrayList <>(Arrays .asList ("at.list " )));
2727 this .persistentData = persistentData ;
2828 }
2929
@@ -49,7 +49,8 @@ public boolean execute(CommandSender sender) {
4949 return true ;
5050 }
5151
52- sender .sendMessage (ChatColor .AQUA + " === 10 Most Recent Sessions ===" );
52+ int displayedCount = sortedSessions .size ();
53+ sender .sendMessage (ChatColor .AQUA + " === Most Recent Sessions (" + displayedCount + "/10) ===" );
5354
5455 UUIDChecker uuidChecker = new UUIDChecker ();
5556 DateTimeFormatter formatter = DateTimeFormatter .ofPattern ("yyyy-MM-dd HH:mm:ss" );
Original file line number Diff line number Diff line change @@ -18,5 +18,5 @@ permissions:
1818 default : true
1919 at.config :
2020 default : op
21- at.admin :
21+ at.list :
2222 default : op
You can’t perform that action at this time.
0 commit comments