Package net.deechael.dynamichat.api
Interface User
- All Known Subinterfaces:
BukkitUser,PlayerBukkitUser,PlayerUser
public interface User
Basic class
-
Method Summary
Modifier and TypeMethodDescriptionvoidMake a channel is available for the uservoidban()Ban the uservoidBan the uservoidBan the uservoidBan the uservoidBan the uservoidBan the uservoidbanIP()Ban the user's ip forevervoidMake the user chat the messageGet all the channels the user has access toGet the ban punishment objectList<? extends Punishment>Mute the userGet the channel the user is currently chattingGet the display name of the userGet the mute punishment objectList<? extends Punishment>getName()Get the name of the userList<? extends Punishment>booleanisBanned()Get whether the user is bannedbooleanisMuted()Get whether the user is mutedvoidkick()Kick the uservoidKick the uservoidSet the channel that the user is currently chattingvoidmute()Mute the uservoidMute the uservoidMute the uservoidMute the uservoidMute the uservoidMute the uservoidMake the user invoke "say" commandvoidsendMessage(String message) Send message to the uservoidsendMessage(net.md_5.bungee.api.chat.BaseComponent... components) Send message to the uservoidsendMessage(net.md_5.bungee.api.chat.ComponentBuilder builder) Send message to the uservoidunavailable(Channel channel) Make a channel is unavailable for the uservoidunban()Unban the uservoidunbanIP()Unban the user's ipvoidunmute()Unmute the uservoidwhisper(BukkitUser another, String message) Make the user whisper to another user
-
Method Details
-
sendMessage
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
Make the user whisper to another user- Parameters:
another- the user will receive the messagemessage- the message
-
say
Make the user invoke "say" command- Parameters:
message- the message
-
chat
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
Get all the channels the user has access to- Returns:
- the channels
-
moveTo
Set the channel that the user is currently chatting- Parameters:
channel- the channel
-
available
Make a channel is available 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
Ban the user- Parameters:
time- how long
-
ban
Ban the user- Parameters:
unbanDate- the date the user will be unbanned
-
ban
Ban the user- Parameters:
reason- the reason why ban the user
-
ban
Ban the user- Parameters:
time- how longreason- the reason why ban the user
-
ban
Ban the user- Parameters:
unbanDate- the date the user will be unbannedreason- the reason why ban the user
-
kick
void kick()Kick the user -
kick
Kick the user- Parameters:
reason- the reason why kick the user
-
mute
void mute()Mute the user -
mute
Mute the user- Parameters:
time- how long
-
mute
Mute the user- Parameters:
unmuteDate- the date the user will be unmuted
-
mute
Mute the user- Parameters:
reason- the reason why mute the user
-
mute
Mute the user- Parameters:
time- how longreason- the reason why mute the user
-
mute
Mute the user- Parameters:
unmuteDate- the date the user will be unmutedreason- 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
Get the ban punishment object- Parameters:
id- the id of the punishment- Returns:
- punishment object
-
getMute
Get the mute punishment object- Parameters:
id- the id of the punishment- Returns:
- punishment object
-