Package de.jvstvshd.necrify.common.user
Class AbstractConsoleUser
java.lang.Object
de.jvstvshd.necrify.common.user.AbstractConsoleUser
- All Implemented Interfaces:
de.jvstvshd.necrify.api.user.CommandSender,de.jvstvshd.necrify.api.user.NecrifyUser
public abstract class AbstractConsoleUser
extends Object
implements de.jvstvshd.necrify.api.user.NecrifyUser
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractConsoleUser(de.jvstvshd.necrify.api.message.MessageProvider provider) AbstractConsoleUser(Locale locale, de.jvstvshd.necrify.api.message.MessageProvider provider) -
Method Summary
Modifier and TypeMethodDescription@NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Ban> ban(@Nullable net.kyori.adventure.text.Component reason, @NotNull de.jvstvshd.necrify.api.duration.PunishmentDuration duration) @NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Ban> banPermanent(@Nullable net.kyori.adventure.text.Component reason) delete(@NotNull de.jvstvshd.necrify.api.user.UserDeletionReason reason) @NotNull Locale<T extends de.jvstvshd.necrify.api.punishment.Punishment>
@NotNull List<T> getPunishments(de.jvstvshd.necrify.api.punishment.PunishmentType... types) @Nullable String@NotNull UUIDgetUuid()booleanhasPermission(@NotNull String permission) boolean@NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Kick> kick(@Nullable net.kyori.adventure.text.Component reason) @NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Mute> mute(@Nullable net.kyori.adventure.text.Component reason, @NotNull de.jvstvshd.necrify.api.duration.PunishmentDuration duration) @NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Mute> mutePermanent(@Nullable net.kyori.adventure.text.Component reason) de.jvstvshd.necrify.api.message.MessageProviderprovider()@NotNull CompletableFuture<String> queryUsername(boolean update) voidsendMessage(@NotNull String key, net.kyori.adventure.text.format.TextColor color, net.kyori.adventure.text.Component... args) setWhitelisted(boolean whitelisted) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.jvstvshd.necrify.api.user.CommandSender
sendErrorMessage, sendMessage, sendMessageMethods inherited from interface de.jvstvshd.necrify.api.user.NecrifyUser
getPunishment
-
Constructor Details
-
AbstractConsoleUser
-
AbstractConsoleUser
public AbstractConsoleUser(de.jvstvshd.necrify.api.message.MessageProvider provider)
-
-
Method Details
-
getUuid
- Specified by:
getUuidin interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
getUsername
- Specified by:
getUsernamein interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
ban
@NotNull public @NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Ban> ban(@Nullable @Nullable net.kyori.adventure.text.Component reason, @NotNull @NotNull de.jvstvshd.necrify.api.duration.PunishmentDuration duration) - Specified by:
banin interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
banPermanent
@NotNull public @NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Ban> banPermanent(@Nullable @Nullable net.kyori.adventure.text.Component reason) - Specified by:
banPermanentin interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
mute
@NotNull public @NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Mute> mute(@Nullable @Nullable net.kyori.adventure.text.Component reason, @NotNull @NotNull de.jvstvshd.necrify.api.duration.PunishmentDuration duration) - Specified by:
mutein interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
mutePermanent
@NotNull public @NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Mute> mutePermanent(@Nullable @Nullable net.kyori.adventure.text.Component reason) - Specified by:
mutePermanentin interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
kick
@NotNull public @NotNull CompletableFuture<de.jvstvshd.necrify.api.punishment.Kick> kick(@Nullable @Nullable net.kyori.adventure.text.Component reason) - Specified by:
kickin interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
getPunishments
@NotNull public <T extends de.jvstvshd.necrify.api.punishment.Punishment> @NotNull List<T> getPunishments(de.jvstvshd.necrify.api.punishment.PunishmentType... types) - Specified by:
getPunishmentsin interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
queryUsername
- Specified by:
queryUsernamein interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
isWhitelisted
public boolean isWhitelisted()- Specified by:
isWhitelistedin interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
setWhitelisted
- Specified by:
setWhitelistedin interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
delete
public CompletableFuture<Integer> delete(@NotNull @NotNull de.jvstvshd.necrify.api.user.UserDeletionReason reason) - Specified by:
deletein interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
hasPermission
- Specified by:
hasPermissionin interfacede.jvstvshd.necrify.api.user.CommandSender
-
getLocale
- Specified by:
getLocalein interfacede.jvstvshd.necrify.api.user.NecrifyUser
-
sendMessage
public void sendMessage(@NotNull @NotNull String key, net.kyori.adventure.text.format.TextColor color, net.kyori.adventure.text.Component... args) - Specified by:
sendMessagein interfacede.jvstvshd.necrify.api.user.CommandSender
-
provider
public de.jvstvshd.necrify.api.message.MessageProvider provider()
-