Basically, I have a game and this is how I manage who's the owner and who's a moderator.
public static final String[] ADMINS = {"test", "jonathan", "bob"};
And that line is in Settings.java
In Commands.java how would I make a command
case "giveadmin":
//write the users name to list
return true;
That physically changes the array and adds the name to it. For example, say I used the giveadmin command on a player named jerry. How would I add code so that in Settings.java it changes this array
public static final String[] ADMINS = {"test", "jonathan", "bob"};
To this
public static final String[] ADMINS = {"test", "jonathan", "bob", "jerry"};
And no I just don't wanna append the name like every other array, I want to physically see the name jerry added to the array when I open the class.