You are browsing as a guest.
Login | Register
~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
1700

Sample Paginator Routine for MCL
Denizen Script
2018/07/24 16:45:06 UTC-07:00
smellyonionman
Click here to view this paste as a raw text file | Or download the script


#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]>'