Paste #48702: Sample Paginator Routine for MCL

Date: 2018/07/24 16:45:06 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


#Sample paginator for s@msgBoxed from Message Constructor Library
#See: https://one.denizenscript.com/denizen/repo/entry/90
#Explanation at https://youtu.be/LMsKsUPZGOQ
paginate_command:
    type: command
    debug: false
    name: paginate
    description: For internal use.  Scrolls text pages.
    usage: /paginate <&lt>pagenumber<&gt>
    permission message: You do not have permission.
    allowed help:
    - determine <player.is_op||<context.server>>
    tab complete:
    - if !<player.is_op||<context.server>> queue clear
    script:
    - run s@msgBoxed 'def:<world.name>|<player.flag[chat_header1]>|<player.flag[chat_header2]>|paginate|<context.args.get[1]>|53|5|<player.flag[chat_entries]>'