I've been trying to do a simple true and false config code this is my code Player p = (Player) sender; if(cmd.getName().equalsIgnoreCase("test")){ if(getConfig().getBoolean("on") == true){ p.sendMessage(getConfig().getString("message")); } if(getConfig().getBoolean("on") == false){ p.sendMessage("no")); Yet this doesn't work for some reason my config file screws up this is my config file in Eclipse message: Hi on: true This is my config file when I run it message: Hi 'true': true It seems to change the string 'on' to 'true' I don't know how to solve it and when I try to run the command in-game it only ever chooses the false option, I have no idea what I can do about this. Any ideas??
TomJ Could you please re format your post so it is easier to read? Code:java System.out.print("Put your Java in here"); Code: and-put-your-config-in-here: true
TomJ Using the code formatting that Gerov displayed (hit the third button from the right on the second row of the editor), please post where you are setting or saving the config.