Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tisawesomeness committed Feb 14, 2024
1 parent b4e0e7f commit 18e7d8b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.stream.Collectors;

@AllArgsConstructor
public class HistoryCommand implements CommandExecutor, TabCompleter {
public final class HistoryCommand implements CommandExecutor, TabCompleter {

private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ public void onDisable() {

private void recordOnlinePlayers() throws SQLException {
List<NamedPlayer> players = getServer().getOnlinePlayers().stream()
.map(this::toNamedPlayer)
.map(NameHistorianSpigot::toNamedPlayer)
.collect(Collectors.toList());
getHistorian().recordNames(players);
}
private NamedPlayer toNamedPlayer(Player player) {
private static NamedPlayer toNamedPlayer(Player player) {
return new NamedPlayer(player.getUniqueId(), player.getName());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.sql.SQLException;

@AllArgsConstructor
public class SeenListener implements Listener {
public final class SeenListener implements Listener {

private final NameHistorianSpigot plugin;

Expand Down

0 comments on commit 18e7d8b

Please sign in to comment.