Class PaperSender
- java.lang.Object
-
- com.github.siroshun09.mccommand.paper.sender.PaperSender
-
- All Implemented Interfaces:
com.github.siroshun09.adventureextender.MessageReceivable,Sender
public class PaperSender extends Object implements Sender
-
-
Constructor Summary
Constructors Constructor Description PaperSender(@NotNull CommandSender sender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AudiencegetAudience()@NotNull StringgetName()Gets the name of the command sender.@NotNull ObjectgetOriginalSender()Gets the command sender that the instance is wrapped in.@NotNull UUIDgetUUID()Gets theUUIDof the command sender.booleanhasPermission(@NotNull String perm)Checks if theSenderhas the requested permission.booleanisOnline()Checks if the sender is online.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
PaperSender
public PaperSender(@NotNull @NotNull CommandSender sender)
-
-
Method Detail
-
getUUID
@NotNull public @NotNull UUID getUUID()
Description copied from interface:SenderGets theUUIDof the command sender.If it is internal sender, returns
ConsoleSender.CONSOLE_UUID.
-
getName
@NotNull public @NotNull String getName()
Description copied from interface:SenderGets the name of the command sender.If it is internal sender, returns
ConsoleSender.CONSOLE_NAME.
-
hasPermission
public boolean hasPermission(@NotNull @NotNull String perm)
Description copied from interface:SenderChecks if theSenderhas the requested permission.- Specified by:
hasPermissionin interfaceSender- Parameters:
perm- a permission.- Returns:
trueif the sender have permission,falseotherwise
-
isOnline
public boolean isOnline()
Description copied from interface:SenderChecks if the sender is online.
-
getOriginalSender
@NotNull public @NotNull Object getOriginalSender()
Description copied from interface:SenderGets the command sender that the instance is wrapped in.- Specified by:
getOriginalSenderin interfaceSender- Returns:
- the original command sender
-
getAudience
@NotNull public @NotNull Audience getAudience()
- Specified by:
getAudiencein interfacecom.github.siroshun09.adventureextender.MessageReceivable
-
-