Class PaperSender

  • All Implemented Interfaces:
    com.github.siroshun09.adventureextender.MessageReceivable, Sender

    public class PaperSender
    extends Object
    implements Sender
    • Method Detail

      • hasPermission

        public boolean hasPermission​(@NotNull
                                     @NotNull String perm)
        Description copied from interface: Sender
        Checks if the Sender has the requested permission.
        Specified by:
        hasPermission in interface Sender
        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.
        Specified by:
        isOnline in interface Sender
        Returns:
        true if the sender is online, false otherwise.
      • 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 interface Sender
        Returns:
        the original command sender
      • getAudience

        @NotNull
        public @NotNull Audience getAudience()
        Specified by:
        getAudience in interface com.github.siroshun09.adventureextender.MessageReceivable