Package org.bukkit.util.ChatPaginator

Examples of org.bukkit.util.ChatPaginator.ChatPage


                  changes.append("\n");
                changes.append(Skript.SKRIPT_PREFIX + Utils.replaceEnglishChatStyles(m_changes_title.toString(i.version, i.date)));
                changes.append("\n");
                changes.append(i.changelog);
              }
              final ChatPage page = ChatPaginator.paginate(changes.toString(), pageNum, ChatPaginator.GUARANTEED_NO_WRAP_CHAT_PAGE_WIDTH, ChatPaginator.OPEN_CHAT_PAGE_HEIGHT - 2);
              sender.sendMessage(page.getLines());
              if (pageNum < page.getTotalPages())
                message(sender, "update.changes.next page", pageNum, page.getTotalPages(), pageNum + 1);
            }
          } else if (args[1].equalsIgnoreCase("download")) {
            switch (state) {
              case NOT_STARTED:
                Updater.check(sender, true, false);
View Full Code Here

TOP

Related Classes of org.bukkit.util.ChatPaginator.ChatPage

Copyright © 2018 www.massapicom. 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.