Package org.bukkit.help

Examples of org.bukkit.help.HelpTopic.canSee()


        if (topic == null) {
            topic = findPossibleMatches(command);
        }

        if (topic == null || !topic.canSee(sender)) {
            sender.sendMessage(ChatColor.RED + "No help for " + command);
            return true;
        }

        ChatPaginator.ChatPage page = ChatPaginator.paginate(topic.getFullText(sender), pageNumber, pageWidth, pageHeight);
View Full Code Here


    @Override
    public boolean canSee(final @Nullable CommandSender commandSender) {
      if (amendedPermission == null) {
        final HelpTopic aliasForTopic = helpMap.getHelpTopic(aliasFor);
        if (aliasForTopic != null) {
          return aliasForTopic.canSee(commandSender);
        } else {
          return false;
        }
      } else {
        return commandSender != null && commandSender.hasPermission(amendedPermission);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.