Help with /<command> <page#>

Discussion in 'Plugin Development' started by hubeb, Mar 21, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    hubeb

    Hello All,

    I need to setup a command where it displays 10 lines from a list of around 800 lines on a page.
    I need to make a command that is /<command> <page#> (ex. /help 2). Ive been fiddling with it for a couple of hours and cant seem to get it right can someone help me with this please.

    Thanks,
    hubeb
    Min3CraftDud3
     
  2. Offline

    xMrPoi

    What's not working to your liking?
     
  3. Offline

    Barinade

    Create your page lists Map<Integer, List<String>>
    if args 0 is ?, display map.get(0) //first page
    if args 0 is ? and args 1 is a number, and the map contains that page, display map.get(args1)
     
  4. Offline

    hubeb

    Barinade Thanks, that makes more sense than the damn for loop ive been working with.
     
  5. Offline

    RainoBoy97

Thread Status:
Not open for further replies.

Share This Page