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 Details

    • AbstractConsoleUser

      public AbstractConsoleUser(Locale locale, de.jvstvshd.necrify.api.message.MessageProvider provider)
    • AbstractConsoleUser

      public AbstractConsoleUser(de.jvstvshd.necrify.api.message.MessageProvider provider)
  • Method Details

    • getUuid

      @NotNull public @NotNull UUID getUuid()
      Specified by:
      getUuid in interface de.jvstvshd.necrify.api.user.NecrifyUser
    • getUsername

      @Nullable public @Nullable String getUsername()
      Specified by:
      getUsername in interface de.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:
      ban in interface de.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:
      banPermanent in interface de.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:
      mute in interface de.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:
      mutePermanent in interface de.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:
      kick in interface de.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:
      getPunishments in interface de.jvstvshd.necrify.api.user.NecrifyUser
    • queryUsername

      @NotNull public @NotNull CompletableFuture<String> queryUsername(boolean update)
      Specified by:
      queryUsername in interface de.jvstvshd.necrify.api.user.NecrifyUser
    • isWhitelisted

      public boolean isWhitelisted()
      Specified by:
      isWhitelisted in interface de.jvstvshd.necrify.api.user.NecrifyUser
    • setWhitelisted

      public CompletableFuture<Boolean> setWhitelisted(boolean whitelisted)
      Specified by:
      setWhitelisted in interface de.jvstvshd.necrify.api.user.NecrifyUser
    • delete

      public CompletableFuture<Integer> delete(@NotNull @NotNull de.jvstvshd.necrify.api.user.UserDeletionReason reason)
      Specified by:
      delete in interface de.jvstvshd.necrify.api.user.NecrifyUser
    • hasPermission

      public boolean hasPermission(@NotNull @NotNull String permission)
      Specified by:
      hasPermission in interface de.jvstvshd.necrify.api.user.CommandSender
    • getLocale

      @NotNull public @NotNull Locale getLocale()
      Specified by:
      getLocale in interface de.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:
      sendMessage in interface de.jvstvshd.necrify.api.user.CommandSender
    • provider

      public de.jvstvshd.necrify.api.message.MessageProvider provider()