I couldn't find any specialized answers. Here's the code:
LocalDateTime t = LocalDateTime.now();
System.out.println("[i][" + t.getHour() + ":" + t.getMinute()+ ":" +t.getSecond() + "] "
+ usr + " typed: " + cmd);
The output now looks like this:
[i][15:8:4] XY typed: test
What I want is to format it to make it look like this:
[i][15:08:04] XY typed: test