vanish support and suggestions overhaul

This commit is contained in:
Draycia committed 2021-10-17 19:48:47 -07:00
1 parent de118017eb
commit 12b40f8150
10 files changed
+126 -19

No files matched your search

@@ -1,5 +1,6 @@
package net.draycia.carbon.api;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import net.draycia.carbon.api.users.CarbonPlayer;
@@ -31,7 +32,7 @@ public interface CarbonServer extends Audience {
* @return the online players
* @since 2.0.0
*/
Iterable<? extends CarbonPlayer> players();
List<? extends CarbonPlayer> players();
/**
* Obtains a {@link CarbonPlayer} instance for the specified uuid.
@@ -270,4 +270,23 @@ public interface CarbonPlayer extends Audience, Identified {
*/
void lastWhisperTarget(final @Nullable UUID uuid);
/**
* If this player is vanished in another supported plugin.
* Other players will be unaware of this player.
* There is no way to set this state through Carbon, we do not store this information; but merely bridge it.
*
* @return If this player is vanished in another plugin.
* @since 2.0.0
*/
boolean vanished();
/**
* Whether this player can see the other player.
*
* @param other the other, potentially vanished, player
* @return if this player is aware of the other player
* @since 2.0.0
*/
boolean awareOf(final CarbonPlayer other);
}