Skip to content

Commit

Permalink
Fix gradle build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JvstvsHD committed Jul 7, 2024
1 parent 03da26e commit 68b93c0
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* This logger will delegate all messages to the SLF4J logger.
* The level conversion is as follows:
* <table border="1">
* <caption>Level conversion</caption>
* <tr>
* <th>Java Util Logging Level</th>
* <th>SLF4J Level</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
* <li>{@link Punishment#cancel()}</li>
* <li>{@link Punishment#change(Component)}</li>
* </ul>
*
* @see com.velocitypowered.api.proxy.Player#disconnect(Component)
*/
public interface Kick extends Punishment {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand All @@ -73,7 +73,7 @@ public interface PlayerResolver {
CompletableFuture<String> 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()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public CompletableFuture<Optional<Punishment>> getPunishment(UUID punishmentId,
return plugin.getPunishment(punishmentId);
}

@Override

public ProxyServer getServer() {
return proxyServer;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,9 @@ public String toString() {
", player=" + player +
'}';
}

@Override
public void delete() {
throw new UnsupportedOperationException("not implemented yet");
}
}

0 comments on commit 68b93c0

Please sign in to comment.