Class User

java.lang.Object
dev.despical.tntrun.user.User

public class User extends Object
  • Constructor Details

    • User

      public User(org.bukkit.entity.Player player)
  • Method Details

    • getUUID

      public UUID getUUID()
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
    • ifPlayerPresent

      public void ifPlayerPresent(Consumer<org.bukkit.entity.Player> playerConsumer)
    • sendMessage

      public void sendMessage(String path, Var... variables)
    • sendRawMessage

      public void sendRawMessage(String msg, Var... variables)
    • sendRawMessage

      public void sendRawMessage(String msg, Object... values)
    • closeOpenedInventory

      public void closeOpenedInventory()
    • getLocation

      public org.bukkit.Location getLocation()
    • sendRawActionBarComponent

      public void sendRawActionBarComponent(net.kyori.adventure.text.Component message)
    • sendRawComponent

      public void sendRawComponent(net.kyori.adventure.text.Component component, Var... vars)
    • sendActionBar

      public void sendActionBar(String path, Var... variables)
    • sendRawActionBar

      public void sendRawActionBar(String msg, Var... variables)
    • sendTitleComponent

      public void sendTitleComponent(net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component subtitle, int fadeIn, int stay, int fadeOut, Var... vars)
    • sendTitle

      public void sendTitle(String titlePath, String subtitlePath, int stay, Var... vars)
    • sendTitle

      public void sendTitle(String titlePath, String subtitlePath, int fadeIn, int stay, int fadeOut, Var... vars)
    • sendRawTitle

      public void sendRawTitle(String title, String subtitle, int stay)
    • sendRawTitle

      public void sendRawTitle(String rawTitle, String rawSubtitle, int fadeIn, int stay, int fadeOut)
    • getArena

      public Arena getArena()
    • isInArena

      public boolean isInArena()
    • hasCooldown

      public boolean hasCooldown(String cooldownName)
    • setCooldown

      public void setCooldown(String cooldownName, double seconds)
    • removeCooldown

      public void removeCooldown(String cooldownName)
    • getCooldown

      public double getCooldown(String cooldownName)
    • getStatistic

      public <T> T getStatistic(StatisticType<T> type)
    • setStatistic

      public <T> void setStatistic(StatisticType<T> type, T newValue)
    • loadStatistic

      public <T> void loadStatistic(StatisticType<T> type, T newValue)
    • addStat

      public void addStat(StatisticType<Integer> type, int amount)
    • addStat

      @SafeVarargs public final void addStat(StatisticType<Integer> type, StatisticType<Integer>... types)
    • setStatisticIfHigher

      public void setStatisticIfHigher(StatisticType<Integer> type, int amount)
    • resetTemporaryStats

      public void resetTemporaryStats()
    • resetArenaStats

      public void resetArenaStats(String arenaId)