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 Audience
getAudience()
@NotNull String
getName()
Gets the name of the command sender.@NotNull Object
getOriginalSender()
Gets the command sender that the instance is wrapped in.@NotNull UUID
getUUID()
Gets theUUID
of the command sender.boolean
hasPermission(@NotNull String perm)
Checks if theSender
has the requested permission.boolean
isOnline()
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:Sender
Gets theUUID
of the command sender.If it is internal sender, returns
ConsoleSender.CONSOLE_UUID
.
-
getName
@NotNull public @NotNull String getName()
Description copied from interface:Sender
Gets 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:Sender
Checks if theSender
has the requested permission.- Specified by:
hasPermission
in interfaceSender
- Parameters:
perm
- a permission.- Returns:
true
if the sender have permission,false
otherwise
-
isOnline
public boolean isOnline()
Description copied from interface:Sender
Checks if the sender is online.
-
getOriginalSender
@NotNull public @NotNull Object getOriginalSender()
Description copied from interface:Sender
Gets the command sender that the instance is wrapped in.- Specified by:
getOriginalSender
in interfaceSender
- Returns:
- the original command sender
-
getAudience
@NotNull public @NotNull Audience getAudience()
- Specified by:
getAudience
in interfacecom.github.siroshun09.adventureextender.MessageReceivable
-
-