0

I am trying to read the contents of a forge cfg file from my bukkit plugin. I can successfully get the file, however I cannot read the values from bukkits' FileConfiguration (as far as I'm aware of). Here is an example forge cfg file from a mod:

# Configuration file

####################
# player1
####################

player1 {
    I:player2=1
    I:player3=1
}


####################
# player2
####################

player2 {
    I:player1=1
    I:player3=1
    I:player4=1
 }

Is it possible to read these values?

Unihedron
  • 10,902
  • 13
  • 62
  • 72
Alex
  • 361
  • 1
  • 4
  • 15

1 Answers1

0

Forge uses a different format than bukkit, so the methods would not be compatible. You need to write a manual parser, copy in whatever forge uses, or use it from MCPC+ (As whatever you want is most likely targeted for an MCPC+ server (A spigot server (a kind of bukkit) mixed with forge).