Package com.djrapitops.plan.commands.use
Class BukkitPlayerCMDSender
- java.lang.Object
-
- com.djrapitops.plan.commands.use.BukkitCMDSender
-
- com.djrapitops.plan.commands.use.BukkitPlayerCMDSender
-
- All Implemented Interfaces:
CMDSender
public class BukkitPlayerCMDSender extends BukkitCMDSender
-
-
Constructor Summary
Constructors Constructor Description BukkitPlayerCMDSender(org.bukkit.entity.Player player)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
boolean
supportsChatEvents()
-
Methods inherited from class com.djrapitops.plan.commands.use.BukkitCMDSender
buildMessage, send
-
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
-
-
-
-
Method Detail
-
getPlayerName
public java.util.Optional<java.lang.String> getPlayerName()
- Specified by:
getPlayerName
in interfaceCMDSender
- Overrides:
getPlayerName
in classBukkitCMDSender
-
hasPermission
public boolean hasPermission(java.lang.String permission)
- Specified by:
hasPermission
in interfaceCMDSender
- Overrides:
hasPermission
in classBukkitCMDSender
-
getUUID
public java.util.Optional<java.util.UUID> getUUID()
- Specified by:
getUUID
in interfaceCMDSender
- Overrides:
getUUID
in classBukkitCMDSender
-
getFormatter
public ChatFormatter getFormatter()
- Specified by:
getFormatter
in interfaceCMDSender
- Overrides:
getFormatter
in classBukkitCMDSender
-
supportsChatEvents
public boolean supportsChatEvents()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classBukkitCMDSender
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBukkitCMDSender
-
-