Package com.djrapitops.plan.commands.use
Class SpongeCMDSender
- java.lang.Object
-
- com.djrapitops.plan.commands.use.SpongeCMDSender
-
- All Implemented Interfaces:
CMDSender
- Direct Known Subclasses:
SpongePlayerCMDSender
public class SpongeCMDSender extends java.lang.Object implements CMDSender
-
-
Constructor Summary
Constructors Constructor Description SpongeCMDSender(org.spongepowered.api.command.CommandSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBuilder
buildMessage()
boolean
equals(java.lang.Object o)
ChatFormatter
getFormatter()
java.util.Optional<java.lang.String>
getPlayerName()
java.util.Optional<java.util.UUID>
getUUID()
int
hashCode()
boolean
hasPermission(java.lang.String permission)
void
send(java.lang.String text)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.djrapitops.plan.commands.use.CMDSender
hasAllPermissionsFor, hasPermission, isMissingPermissionsFor, isPlayer, send, supportsChatEvents
-
-
-
-
Method Detail
-
buildMessage
public MessageBuilder buildMessage()
- Specified by:
buildMessage
in interfaceCMDSender
-
getPlayerName
public java.util.Optional<java.lang.String> getPlayerName()
- Specified by:
getPlayerName
in interfaceCMDSender
-
hasPermission
public boolean hasPermission(java.lang.String permission)
- Specified by:
hasPermission
in interfaceCMDSender
-
getUUID
public java.util.Optional<java.util.UUID> getUUID()
-
getFormatter
public ChatFormatter getFormatter()
- Specified by:
getFormatter
in interfaceCMDSender
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-