Skip to content

Commit

Permalink
code optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
Ra1ny-Yuki committed Aug 19, 2023
1 parent 16a56cf commit c0e85c7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 27 deletions.
4 changes: 0 additions & 4 deletions src/main/java/com/plusls/llsmanager/data/LBSWhiteList.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ public boolean blacklistRemove(UUID uuid) {
}
}

public boolean blacklistAdd(UUID uuid) {
return blacklistAdd(uuid, Component.translatable("multiplayer.disconnect.banned").color(NamedTextColor.RED));
}

public boolean setWhitelistStatus(boolean status) {
if (whitelistData.enableWhiteList == status) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import com.mojang.brigadier.builder.RequiredArgumentBuilder;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.mojang.brigadier.suggestion.Suggestions;
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
import com.mojang.brigadier.tree.LiteralCommandNode;
import com.plusls.llsmanager.LlsManager;
import com.plusls.llsmanager.command.Command;
Expand All @@ -20,10 +18,8 @@
import com.velocitypowered.api.command.CommandMeta;
import com.velocitypowered.api.command.CommandSource;
import com.velocitypowered.api.proxy.ConsoleCommandSource;
import com.velocitypowered.api.proxy.Player;

import java.util.ArrayList;
import java.util.concurrent.CompletableFuture;

@Singleton
public class MCDReforgedCommand implements Command {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import net.kyori.adventure.text.format.NamedTextColor;

import javax.annotation.Nullable;
import javax.sound.midi.spi.SoundbankReader;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,24 @@

import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.mojang.brigadier.arguments.BoolArgumentType;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import com.mojang.brigadier.builder.RequiredArgumentBuilder;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.mojang.brigadier.suggestion.Suggestions;
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
import com.mojang.brigadier.tree.LiteralCommandNode;
import com.plusls.llsmanager.LlsManager;
import com.plusls.llsmanager.command.Command;
import com.plusls.llsmanager.data.LlsPlayer;
import com.plusls.llsmanager.util.LoadPlayerFailException;
import com.plusls.llsmanager.util.PlayerNotFoundException;
import com.plusls.llsmanager.util.TextUtil;
import com.velocitypowered.api.command.BrigadierCommand;
import com.velocitypowered.api.command.CommandSource;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent;
import net.kyori.adventure.text.event.ClickEvent;
import net.kyori.adventure.text.event.HoverEvent;
import net.kyori.adventure.text.format.NamedTextColor;
import org.slf4j.Logger;

import javax.annotation.Nullable;
import javax.naming.Name;
import java.io.IOException;
import java.util.Collections;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentSkipListSet;

@Singleton
public class LlsWhitelistCommand {
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/com/plusls/llsmanager/whitelist/UUIDUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.text.MessageFormat;
import java.util.UUID;

import com.plusls.llsmanager.LlsManager;

public class UUIDUtil {

public static LlsManager llsManager;
Expand Down

0 comments on commit c0e85c7

Please sign in to comment.