Too cool not to share - even easier Config!

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

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

    codename_B

    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!

    Oh also - don't make things private if you want them to be set ;)

    TOP TIP :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
    iKeirNez likes this.
  2. Thank you for this! I am using this in a plugin I am creating and will hopefully use it in CommandsEX too.
     
Thread Status:
Not open for further replies.

Share This Page