Skip to content

Commit

Permalink
Less Variables!
Browse files Browse the repository at this point in the history
Removed the whitelistOn boolean, in the main class.

In the future, I will remove the focusOn string variable, as well.
However, for now, it serves it's purpose.
  • Loading branch information
FerusGrim committed Apr 29, 2014
1 parent 3692c69 commit 01f8e0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/io/github/ferusgrim/GrimList/GrimList.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,17 @@ public class GrimList extends JavaPlugin {
public MySQLManager mysqlm;
public SQLiteManager sqlitem;
public URLManager urlm;
public String mStart = ChatColor.GREEN + "" + ChatColor.BOLD + "[GrimList] " + ChatColor.RESET + ChatColor.YELLOW + "";
public String mStart = ChatColor.translateAlternateColorCodes('&', "&a&l[GrimList]&r&e ");
public String version = "";
public String link = "";
public String focusOn;
public boolean whitelistOn;

@Override
public void onEnable(){
if(!new File(getDataFolder(), "config.yml").exists()){
saveDefaultConfig();
}
whitelistOn = getConfig().getBoolean("Whitelist");
if(!whitelistOn){
if(!getConfig().getBoolean("Whitelist")){
log("WARNING", "The whitelist has been disabled! Why do you even want me? :(");
}
focusOn = getConfig().getString("Focus");
Expand Down

0 comments on commit 01f8e0f

Please sign in to comment.