Class IAbstractUser<P extends CodexPlugin<P>>

java.lang.Object
studio.magemonkey.codex.data.users.IAbstractUser<P>

public abstract class IAbstractUser<P extends CodexPlugin<P>> extends Object
  • Field Details

    • plugin

      @NotNull protected transient P extends CodexPlugin<P> plugin
    • uuid

      protected UUID uuid
    • name

      protected String name
    • lastOnline

      protected long lastOnline
  • Constructor Details

    • IAbstractUser

      public IAbstractUser(@NotNull P plugin, @NotNull org.bukkit.entity.Player player)
    • IAbstractUser

      public IAbstractUser(@NotNull P plugin, @NotNull UUID uuid, @NotNull String name, long lastOnline)
  • Method Details

    • getUUID

      @NotNull public UUID getUUID()
    • getName

      @NotNull public String getName()
    • setName

      public void setName(@NotNull String name)
      Update stored user names to their mojang names.
      Parameters:
      name - stored user name.
    • getLastOnline

      public long getLastOnline()
    • setLastOnline

      public void setLastOnline(long lastOnline)
    • isOnline

      public boolean isOnline()
    • getOfflinePlayer

      @Nullable public org.bukkit.OfflinePlayer getOfflinePlayer()
    • getPlayer

      @Nullable public org.bukkit.entity.Player getPlayer()
    • toString

      public String toString()
      Overrides:
      toString in class Object