refactor: fix some ide warnings
This commit is contained in:
@@ -63,7 +63,7 @@ public class FilterCommand extends Command {
|
||||
|
||||
if (
|
||||
PlayerFilterPlugin.localList.stream()
|
||||
.map(filteredPlayer -> filteredPlayer.playerName())
|
||||
.map(FilteredPlayer::playerName)
|
||||
.toList()
|
||||
.contains(player)
|
||||
) {
|
||||
|
||||
@@ -67,10 +67,8 @@ public class FindAltsCommand extends Command {
|
||||
|
||||
if (future == null) return null;
|
||||
|
||||
final String tempFinalPlayer = player;
|
||||
|
||||
future.thenApply(targetIP -> {
|
||||
context.sendOutput(handle(bot, targetIP, false, tempFinalPlayer, allServer));
|
||||
context.sendOutput(handle(bot, targetIP, false, player, allServer));
|
||||
|
||||
return targetIP;
|
||||
});
|
||||
|
||||
@@ -86,7 +86,7 @@ public class IPFilterCommand extends Command {
|
||||
case "clear" -> {
|
||||
context.checkOverloadArgs(1);
|
||||
|
||||
DatabasePlugin.EXECUTOR_SERVICE.submit(() -> bot.ipFilter.clear());
|
||||
DatabasePlugin.EXECUTOR_SERVICE.submit(bot.ipFilter::clear);
|
||||
return Component.text("Cleared the filter").color(bot.colorPalette.defaultColor);
|
||||
}
|
||||
case "list" -> {
|
||||
|
||||
Reference in New Issue
Block a user