Interface User

All Known Subinterfaces:
BukkitUser, PlayerBukkitUser, PlayerUser

public interface User
Basic class
  • Method Details

    • sendMessage

      void sendMessage(String message)
      Send message to the user
      Parameters:
      message - the message
    • sendMessage

      void sendMessage(net.md_5.bungee.api.chat.BaseComponent... components)
      Send message to the user
      Parameters:
      components - the message
    • sendMessage

      void sendMessage(net.md_5.bungee.api.chat.ComponentBuilder builder)
      Send message to the user
      Parameters:
      builder - the message
    • whisper

      void whisper(BukkitUser another, String message)
      Make the user whisper to another user
      Parameters:
      another - the user will receive the message
      message - the message
    • say

      void say(String message)
      Make the user invoke "say" command
      Parameters:
      message - the message
    • chat

      void chat(String message)
      Make the user chat the message
      Parameters:
      message - the message
    • getCurrent

      Channel getCurrent()
      Get the channel the user is currently chatting
      Returns:
      the channel
    • getName

      String getName()
      Get the name of the user
      Returns:
      username
    • getDisplayName

      String getDisplayName()
      Get the display name of the user
      Returns:
      user display name
    • getAvailable

      List<? extends Channel> getAvailable()
      Get all the channels the user has access to
      Returns:
      the channels
    • moveTo

      void moveTo(Channel channel)
      Set the channel that the user is currently chatting
      Parameters:
      channel - the channel
    • available

      void available(Channel channel)
      Make a channel is available for the user
      Parameters:
      channel - the channel
    • unavailable

      void unavailable(Channel channel)
      Make a channel is unavailable for the user
      Parameters:
      channel - the channel
    • banIP

      void banIP()
      Ban the user's ip forever
    • unbanIP

      void unbanIP()
      Unban the user's ip
    • unban

      void unban()
      Unban the user
    • unmute

      void unmute()
      Unmute the user
    • ban

      void ban()
      Ban the user
    • ban

      void ban(Time time)
      Ban the user
      Parameters:
      time - how long
    • ban

      void ban(Date unbanDate)
      Ban the user
      Parameters:
      unbanDate - the date the user will be unbanned
    • ban

      void ban(String reason)
      Ban the user
      Parameters:
      reason - the reason why ban the user
    • ban

      void ban(Time time, String reason)
      Ban the user
      Parameters:
      time - how long
      reason - the reason why ban the user
    • ban

      void ban(Date unbanDate, String reason)
      Ban the user
      Parameters:
      unbanDate - the date the user will be unbanned
      reason - the reason why ban the user
    • kick

      void kick()
      Kick the user
    • kick

      void kick(String reason)
      Kick the user
      Parameters:
      reason - the reason why kick the user
    • mute

      void mute()
      Mute the user
    • mute

      void mute(Time time)
      Mute the user
      Parameters:
      time - how long
    • mute

      void mute(Date unmuteDate)
      Mute the user
      Parameters:
      unmuteDate - the date the user will be unmuted
    • mute

      void mute(String reason)
      Mute the user
      Parameters:
      reason - the reason why mute the user
    • mute

      void mute(Time time, String reason)
      Mute the user
      Parameters:
      time - how long
      reason - the reason why mute the user
    • mute

      void mute(Date unmuteDate, String reason)
      Mute the user
      Parameters:
      unmuteDate - the date the user will be unmuted
      reason - the reason why mute the user
    • getBanHistory

      List<? extends Punishment> getBanHistory()
      Mute the user
      Returns:
      all the ban punishments of the player
    • getMuteHistory

      List<? extends Punishment> getMuteHistory()
      Returns:
      all the mute punishments of the player
    • getPunishHistory

      List<? extends Punishment> getPunishHistory()
      Returns:
      all the punishments of the player
    • isBanned

      boolean isBanned()
      Get whether the user is banned
      Returns:
      always false actually because only the user that can get into the server will create a User object
    • isMuted

      boolean isMuted()
      Get whether the user is muted
      Returns:
      the status
    • getBan

      Punishment getBan(String id)
      Get the ban punishment object
      Parameters:
      id - the id of the punishment
      Returns:
      punishment object
    • getMute

      Punishment getMute(String id)
      Get the mute punishment object
      Parameters:
      id - the id of the punishment
      Returns:
      punishment object