Getting last thing from config

Discussion in 'Spigot Plugin Development' started by MrFishCakes, May 1, 2017.

  1. Hello,
    I want to do something like this (I have used reports as an example)
    Code (YAML):
    Reports:
      1
    :
        Reporter
    : MrFishCakes
        Reported
    : SpigotMC
        Reason
    : Good community
        Time
    : 01/05/2017 17:43
      2
    :
        Reporter
    : SpigotMC
        Reported
    : md_5
        Reason
    : Developer
        Time
    : 01/05/2017 17:45
    But say when a new report was to come in, how would I get the last number (2) so then it makes the new report #3?

    Thanks,
    MrFishCakes
     
  2. Bumping this thread.
     
  3. Or you could keep the conversation here.
     
    • Agree Agree x 1
    • Funny Funny x 1