[HELP] Configuration questions

Discussion in 'Plugin Development' started by hskrasek, Apr 2, 2012.

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

    hskrasek

    So I have stepped in to help with the development of a plugin, I am making some config changes and I am just not sure how to do this, or getting it really. It may be that all my College/University programming is just frying my brain to much, but I thought I'd ask for some help.

    How could I maintain a current users config, whenever I change it all together? I don't wanna ask the users to redo the config, but I would like to add things like comment header to explain values and everything. Hopefully this makes sense, I usually wouldn't ask for help with something that may be super basic, but I want to get the new version of the plugin out and soon, so here I am.


    Also, anyone have tips for colored text on signs? I tried doing just ChatColor.RED + String when I called but setText, but it still stayed black.
     
  2. Offline

    Mr Washington

    For the first question, make a list as you would normally and have the contents be the online players list (server.getOnlinePlayers()), set the list to update in the onPlayerJoin event. Then set the confit option in the same event.

    I know there is a way to do the second one however I am on my iPad and cannot check for you.

    As for the third you must use a special character that looks like an s(I'll post it later) then a number like you would in-game to create colors
     
  3. Offline

    theguynextdoor

    line = line.replace("&", "ยง"); is what you want for the sign.
     
Thread Status:
Not open for further replies.

Share This Page