From d95019e83095e2af6194cda7603c8993a1e99302 Mon Sep 17 00:00:00 2001 From: Zach Date: Sun, 30 Jun 2024 14:08:10 -0500 Subject: [PATCH] Add relocations for PaperLib & MorePaperLib --- SimpleStaffChat-Bungee/pom.xml | 2 +- .../simplestaffchat/utilities/Methods.java | 16 +++++++--------- SimpleStaffChat-Spigot/pom.xml | 10 +++++++++- .../simplestaffchat/utilities/Methods.java | 16 +++++++--------- SimpleStaffChat-Velocity/pom.xml | 2 +- .../simplestaffchat/utilities/Methods.java | 16 +++++++--------- pom.xml | 2 +- 7 files changed, 33 insertions(+), 31 deletions(-) diff --git a/SimpleStaffChat-Bungee/pom.xml b/SimpleStaffChat-Bungee/pom.xml index 6b90e1e..42f3e09 100644 --- a/SimpleStaffChat-Bungee/pom.xml +++ b/SimpleStaffChat-Bungee/pom.xml @@ -6,7 +6,7 @@ me.refracdevelopment SimpleStaffChat - 4.3.3 + 4.3.4 4.0.0 diff --git a/SimpleStaffChat-Bungee/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java b/SimpleStaffChat-Bungee/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java index 3c33736..24082d0 100644 --- a/SimpleStaffChat-Bungee/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java +++ b/SimpleStaffChat-Bungee/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java @@ -7,25 +7,23 @@ import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.connection.ProxiedPlayer; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import java.util.*; @UtilityClass public class Methods { @Getter - private final List staffChatMuted = new ArrayList<>(); + private final Set staffChatMuted = new HashSet<>(); @Getter - private final List adminChatMuted = new ArrayList<>(); + private final Set adminChatMuted = new HashSet<>(); @Getter - private final List devChatMuted = new ArrayList<>(); + private final Set devChatMuted = new HashSet<>(); @Getter - private final List staffChatPlayers = new ArrayList<>(); + private final Set staffChatPlayers = new HashSet<>(); @Getter - private final List adminChatPlayers = new ArrayList<>(); + private final Set adminChatPlayers = new HashSet<>(); @Getter - private final List devChatPlayers = new ArrayList<>(); + private final Set devChatPlayers = new HashSet<>(); public void sendStaffChat(CommandSender commandSender, String format, String message) { if (commandSender instanceof ProxiedPlayer player) { diff --git a/SimpleStaffChat-Spigot/pom.xml b/SimpleStaffChat-Spigot/pom.xml index a95b85d..f0f0fc0 100644 --- a/SimpleStaffChat-Spigot/pom.xml +++ b/SimpleStaffChat-Spigot/pom.xml @@ -6,7 +6,7 @@ me.refracdevelopment SimpleStaffChat - 4.3.3 + 4.3.4 4.0.0 @@ -63,6 +63,14 @@ net.kyori.adventure.text.minimessage me.refracdevelopment.libs.minimessage + + space.arim.morepaperlib + me.refracdevelopment.libs.morepaperlib + + + io.papermc.lib + me.refracdevelopment.libs.paperlib + diff --git a/SimpleStaffChat-Spigot/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java b/SimpleStaffChat-Spigot/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java index edb5cef..767d325 100644 --- a/SimpleStaffChat-Spigot/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java +++ b/SimpleStaffChat-Spigot/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java @@ -7,25 +7,23 @@ import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import java.util.*; @UtilityClass public final class Methods { @Getter - private final List staffChatMuted = new ArrayList<>(); + private final Set staffChatMuted = new HashSet<>(); @Getter - private final List adminChatMuted = new ArrayList<>(); + private final Set adminChatMuted = new HashSet<>(); @Getter - private final List devChatMuted = new ArrayList<>(); + private final Set devChatMuted = new HashSet<>(); @Getter - private final List staffChatPlayers = new ArrayList<>(); + private final Set staffChatPlayers = new HashSet<>(); @Getter - private final List adminChatPlayers = new ArrayList<>(); + private final Set adminChatPlayers = new HashSet<>(); @Getter - private final List devChatPlayers = new ArrayList<>(); + private final Set devChatPlayers = new HashSet<>(); public void sendStaffChat(CommandSender commandSender, String format, String message) { if (commandSender instanceof Player player) { diff --git a/SimpleStaffChat-Velocity/pom.xml b/SimpleStaffChat-Velocity/pom.xml index 8ec5096..c83673a 100644 --- a/SimpleStaffChat-Velocity/pom.xml +++ b/SimpleStaffChat-Velocity/pom.xml @@ -6,7 +6,7 @@ me.refracdevelopment SimpleStaffChat - 4.3.3 + 4.3.4 4.0.0 diff --git a/SimpleStaffChat-Velocity/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java b/SimpleStaffChat-Velocity/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java index de11f03..9e7fdb8 100644 --- a/SimpleStaffChat-Velocity/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java +++ b/SimpleStaffChat-Velocity/src/main/java/me/refracdevelopment/simplestaffchat/utilities/Methods.java @@ -7,25 +7,23 @@ import me.refracdevelopment.simplestaffchat.SimpleStaffChat; import me.refracdevelopment.simplestaffchat.utilities.chat.RyMessageUtils; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import java.util.*; @UtilityClass public class Methods { @Getter - private final List staffChatMuted = new ArrayList<>(); + private final Set staffChatMuted = new HashSet<>(); @Getter - private final List adminChatMuted = new ArrayList<>(); + private final Set adminChatMuted = new HashSet<>(); @Getter - private final List devChatMuted = new ArrayList<>(); + private final Set devChatMuted = new HashSet<>(); @Getter - private final List staffChatPlayers = new ArrayList<>(); + private final Set staffChatPlayers = new HashSet<>(); @Getter - private final List adminChatPlayers = new ArrayList<>(); + private final Set adminChatPlayers = new HashSet<>(); @Getter - private final List devChatPlayers = new ArrayList<>(); + private final Set devChatPlayers = new HashSet<>(); public void sendStaffChat(CommandSource commandSource, String format, String message) { if (commandSource instanceof Player player) { diff --git a/pom.xml b/pom.xml index 668332e..8ec84da 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.refracdevelopment SimpleStaffChat - 4.3.3 + 4.3.4 pom SimpleStaffChat