From 68b93c07922a231bace066007f1c33566d626d60 Mon Sep 17 00:00:00 2001 From: JvstvsHD <79066214+JvstvsHD@users.noreply.github.com> Date: Sun, 7 Jul 2024 19:58:55 +0200 Subject: [PATCH] Fix gradle build errors --- .../java/de/jvstvshd/necrify/api/event/Slf4jLogger.java | 1 + .../java/de/jvstvshd/necrify/api/punishment/Kick.java | 2 -- .../necrify/api/punishment/PunishmentManager.java | 8 ++++---- .../necrify/api/punishment/util/PlayerResolver.java | 4 ++-- .../necrify/velocity/impl/DefaultPunishmentManager.java | 2 +- .../de/jvstvshd/necrify/velocity/user/VelocityUser.java | 5 +++++ 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/api/src/main/java/de/jvstvshd/necrify/api/event/Slf4jLogger.java b/api/src/main/java/de/jvstvshd/necrify/api/event/Slf4jLogger.java index a00b19bd..3c5d8b62 100644 --- a/api/src/main/java/de/jvstvshd/necrify/api/event/Slf4jLogger.java +++ b/api/src/main/java/de/jvstvshd/necrify/api/event/Slf4jLogger.java @@ -33,6 +33,7 @@ * This logger will delegate all messages to the SLF4J logger. * The level conversion is as follows: * + * * * * diff --git a/api/src/main/java/de/jvstvshd/necrify/api/punishment/Kick.java b/api/src/main/java/de/jvstvshd/necrify/api/punishment/Kick.java index a07aa5a1..d52a3272 100644 --- a/api/src/main/java/de/jvstvshd/necrify/api/punishment/Kick.java +++ b/api/src/main/java/de/jvstvshd/necrify/api/punishment/Kick.java @@ -36,8 +36,6 @@ *
  • {@link Punishment#cancel()}
  • *
  • {@link Punishment#change(Component)}
  • * - * - * @see com.velocitypowered.api.proxy.Player#disconnect(Component) */ public interface Kick extends Punishment { diff --git a/api/src/main/java/de/jvstvshd/necrify/api/punishment/PunishmentManager.java b/api/src/main/java/de/jvstvshd/necrify/api/punishment/PunishmentManager.java index c345d962..79e1aa77 100644 --- a/api/src/main/java/de/jvstvshd/necrify/api/punishment/PunishmentManager.java +++ b/api/src/main/java/de/jvstvshd/necrify/api/punishment/PunishmentManager.java @@ -49,7 +49,7 @@ public interface PunishmentManager { /** * Prepares a ban for a player with custom reason and duration. * - * @param player the uuid of the player which should be banned (by either {@link Player#getUniqueId()} ()} or {@link PlayerResolver#getPlayerUuid(String)}. + * @param player the uuid of the player which should be banned (by either {link Player#getUniqueId() or {@link PlayerResolver#getPlayerUuid(String)}. * @param reason the reason given as a {@link Component}. * @param duration the duration, which can be created via {@link PunishmentDuration#parse(String)} when it's source is from minecraft commands. * @return the prepared ban with the given reason and duration. This duration remains the same at any duration since it is only added when the player is banned. @@ -61,7 +61,7 @@ public interface PunishmentManager { * Prepares a ban for a player with custom reason and duration. Its only difference to {@link #createBan(UUID, Component, PunishmentDuration)} is, that the {@link PunishmentDuration} * is {@link PunishmentDuration#permanent()}. * - * @param player the uuid of the player which should be banned (by either {@link Player#getUniqueId()} ()} or {@link PlayerResolver#getPlayerUuid(String)}. + * @param player the uuid of the player which should be banned (by either Player#getUniqueId() ()} or {@link PlayerResolver#getPlayerUuid(String)}. * @param reason the reason given as a {@link Component}. * @return the prepared ban with the given reason and duration. The duration is permanent, equals {@link java.time.LocalDateTime#MAX} * Only {@link Ban#punish()} is needed to execute the punishment. @@ -73,7 +73,7 @@ default Ban createPermanentBan(UUID player, Component reason) { /** * Prepares a mute for a player with custom reason and duration. * - * @param player the uuid of the player which should be banned (by either {@link Player#getUniqueId()} ()} or {@link PlayerResolver#getPlayerUuid(String)}. + * @param player the uuid of the player which should be banned (by either Player#getUniqueId() or {@link PlayerResolver#getPlayerUuid(String)}. * @param reason the reason given as a {@link Component}. * @param duration the duration, which can be created via {@link PunishmentDuration#parse(String)} when it's source is from minecraft commands. * @return the prepared ban with the given reason and duration. This duration remains the same at any duration since it is only added when the player is banned. @@ -85,7 +85,7 @@ default Ban createPermanentBan(UUID player, Component reason) { * Prepares a ban for a player with custom reason and duration. Its only difference to {@link #createMute(UUID, Component, PunishmentDuration)} is, that the {@link PunishmentDuration} * is {@link PunishmentDuration#permanent()}. * - * @param player the uuid of the player which should be banned (by either {@link Player#getUniqueId()} ()} or {@link PlayerResolver#getPlayerUuid(String)} + * @param player the uuid of the player which should be banned (by either Player#getUniqueId() or {@link PlayerResolver#getPlayerUuid(String)} * @param reason the reason given as a {@link Component}. * @return the prepared ban with the given reason and duration. The duration is permanent, equals {@link java.time.LocalDateTime#MAX} * Only {@link Mute#punish()} is needed to execute the punishment. diff --git a/api/src/main/java/de/jvstvshd/necrify/api/punishment/util/PlayerResolver.java b/api/src/main/java/de/jvstvshd/necrify/api/punishment/util/PlayerResolver.java index 6df2f31f..b10c9c9d 100644 --- a/api/src/main/java/de/jvstvshd/necrify/api/punishment/util/PlayerResolver.java +++ b/api/src/main/java/de/jvstvshd/necrify/api/punishment/util/PlayerResolver.java @@ -47,7 +47,7 @@ public interface PlayerResolver { /** - * Retrieves the player's name via {@link com.velocitypowered.api.proxy.ProxyServer#getPlayer(UUID)}, a caching mechanism or related things. + * Retrieves the player's name via com.velocitypowered.api.proxy.ProxyServer#getPlayer(UUID) (on Velocity), a caching mechanism or related things. * * @param uuid the uuid of the player * @return the name, or {@link Optional#empty()} @@ -73,7 +73,7 @@ public interface PlayerResolver { CompletableFuture getOrQueryPlayerName(@NotNull UUID uuid, @NotNull Executor executor); /** - * Retrieves the player's uuid via {@link com.velocitypowered.api.proxy.ProxyServer#getPlayer(String)}, a caching mechanism or related things. + * Retrieves the player's uuid via com.velocitypowered.api.proxy.ProxyServer#getPlayer(String) (on velocity), a caching mechanism or related things. * * @param name the name of the player * @return the name, or {@link Optional#empty()} diff --git a/plugin/src/main/java/de/jvstvshd/necrify/velocity/impl/DefaultPunishmentManager.java b/plugin/src/main/java/de/jvstvshd/necrify/velocity/impl/DefaultPunishmentManager.java index cb555fb5..ec274f2a 100644 --- a/plugin/src/main/java/de/jvstvshd/necrify/velocity/impl/DefaultPunishmentManager.java +++ b/plugin/src/main/java/de/jvstvshd/necrify/velocity/impl/DefaultPunishmentManager.java @@ -90,7 +90,7 @@ public CompletableFuture> getPunishment(UUID punishmentId, return plugin.getPunishment(punishmentId); } - @Override + public ProxyServer getServer() { return proxyServer; } diff --git a/plugin/src/main/java/de/jvstvshd/necrify/velocity/user/VelocityUser.java b/plugin/src/main/java/de/jvstvshd/necrify/velocity/user/VelocityUser.java index 6ffc1919..00cebcfb 100644 --- a/plugin/src/main/java/de/jvstvshd/necrify/velocity/user/VelocityUser.java +++ b/plugin/src/main/java/de/jvstvshd/necrify/velocity/user/VelocityUser.java @@ -274,4 +274,9 @@ public String toString() { ", player=" + player + '}'; } + + @Override + public void delete() { + throw new UnsupportedOperationException("not implemented yet"); + } }
    Level conversion
    Java Util Logging LevelSLF4J Level