[unsolved]What am I doing wrong for the config

Discussion in 'Plugin Development' started by Jogy34, Oct 20, 2011.

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

    Sagacious_Zed Bukkit Docs

    I still say it is his use of static. When i said get rid of every static keyword, i meant it. It does however require some restructuring of code.
     
  2. Offline

    Jogy34

    @Sagacious_Zed I have 3 variables that are static

    1.
    Code:
    public static String[] joinedPlayers = new String[500];
    This has to be static because I make static references to it.

    2/3.
    Code:
    public static Plugin plugin;
    ...
    public static Plugin plugin;
        public onJoinPlayerListener(Plugin instance) {
            plugin = instance;
        }
    
    I've been told that these ALWAYS have to be static.


    @Walker Crouse your link didn't help because I actually want to replace a list instead of adding to it.
     
  3. Offline

    Jogy34

    Anyone have anyone other suggestions
     
  4. Offline

    Jogy34

    Anyone???
     
  5. Offline

    Jogy34

    Anyone??????????:(
     
  6. Offline

    Windwaker

    Under "Setting a field value"
     
  7. Offline

    Jogy34

    @Walker Crouse I did that to set the original list but when I want to reset it the list isn't changing.

    Anyone??????????????????

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
Thread Status:
Not open for further replies.

Share This Page