Too cool not to share - even easier Config!

Discussion in 'Resources' started by codename_B, Jun 19, 2012.

  1. Offline

    codename_B

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This one was (heavily) inspired by md_5 but includes a few more sanity checks and slightly better memory management (I hope).

    http://pastie.org/4114135

    The concept here is it won't touch final, static, or transient fields - meaning you're not going to get any nasty errors from using them (and also you can make a static instance to your config within itself if you're super-duper-uber-bad-and-lazy)

    But anyway, extend Config, make your fields, and job done!
    iKeirNez likes this.
  2. Offline

    codename_B

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh also - don't make things private if you want them to be set ;)

    TOP TIP :D
  3. Offline

    iKeirNez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thank you for this! I am using this in a plugin I am creating and will hopefully use it in CommandsEX too.

Share This Page