Package com.alessiodp.core.bukkit.user
Class BukkitUser
- java.lang.Object
-
- com.alessiodp.core.bukkit.user.BukkitUser
-
- All Implemented Interfaces:
com.alessiodp.core.common.user.OfflineUser,com.alessiodp.core.common.user.User
public class BukkitUser extends Object implements com.alessiodp.core.common.user.User
-
-
Constructor Summary
Constructors Constructor Description BukkitUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchat(@NotNull String messageToSend)@Nullable StringgetDisplayName()StringgetDynamicPermission(@NotNull String startsWith)@Nullable com.alessiodp.core.common.utils.ADPLocationgetLocation()@Nullable StringgetName()@NotNull com.alessiodp.core.common.ADPPlugingetPlugin()@NotNull org.bukkit.command.CommandSendergetSender()Get original senderUUIDgetUUID()booleanhasPermission(@NotNull String permission)booleanisBanned()booleanisOperator()booleanisPlayer()booleanisVanished()voidplaySound(@NotNull String sound, double volume, double pitch)voidsendMessage(@NotNull String message, boolean colorTranslation)voidsendTitle(@NotNull String message, int fadeInTime, int showTime, int fadeOutTime)CompletableFuture<Boolean>teleportAsync(@NotNull org.bukkit.Location location)Teleport the player with an async teleport
-
-
-
Method Detail
-
getUUID
public UUID getUUID()
- Specified by:
getUUIDin interfacecom.alessiodp.core.common.user.OfflineUser
-
hasPermission
public boolean hasPermission(@NotNull @NotNull String permission)- Specified by:
hasPermissionin interfacecom.alessiodp.core.common.user.User
-
getDynamicPermission
public String getDynamicPermission(@NotNull @NotNull String startsWith)
- Specified by:
getDynamicPermissionin interfacecom.alessiodp.core.common.user.User
-
isOperator
public boolean isOperator()
- Specified by:
isOperatorin interfacecom.alessiodp.core.common.user.OfflineUser
-
isPlayer
public boolean isPlayer()
- Specified by:
isPlayerin interfacecom.alessiodp.core.common.user.User
-
isBanned
public boolean isBanned()
- Specified by:
isBannedin interfacecom.alessiodp.core.common.user.OfflineUser
-
getName
@Nullable public @Nullable String getName()
- Specified by:
getNamein interfacecom.alessiodp.core.common.user.OfflineUser
-
getDisplayName
@Nullable public @Nullable String getDisplayName()
- Specified by:
getDisplayNamein interfacecom.alessiodp.core.common.user.User
-
sendMessage
public void sendMessage(@NotNull @NotNull String message, boolean colorTranslation)- Specified by:
sendMessagein interfacecom.alessiodp.core.common.user.User
-
sendTitle
public void sendTitle(@NotNull @NotNull String message, int fadeInTime, int showTime, int fadeOutTime)- Specified by:
sendTitlein interfacecom.alessiodp.core.common.user.User
-
chat
public void chat(@NotNull @NotNull String messageToSend)- Specified by:
chatin interfacecom.alessiodp.core.common.user.User
-
playSound
public void playSound(@NotNull @NotNull String sound, double volume, double pitch)- Specified by:
playSoundin interfacecom.alessiodp.core.common.user.User
-
isVanished
public boolean isVanished()
- Specified by:
isVanishedin interfacecom.alessiodp.core.common.user.User
-
getLocation
@Nullable public @Nullable com.alessiodp.core.common.utils.ADPLocation getLocation()
- Specified by:
getLocationin interfacecom.alessiodp.core.common.user.User
-
getPlugin
@NotNull public @NotNull com.alessiodp.core.common.ADPPlugin getPlugin()
- Specified by:
getPluginin interfacecom.alessiodp.core.common.user.OfflineUser
-
getSender
@NotNull public @NotNull org.bukkit.command.CommandSender getSender()
Get original sender- Returns:
- the sender
-
teleportAsync
public CompletableFuture<Boolean> teleportAsync(@NotNull @NotNull org.bukkit.Location location)
Teleport the player with an async teleport- Parameters:
location- the destination of the teleport- Returns:
- the future event
-
-