I am trying to make a plugin where the player types a directory on there computer (This is for windows) in a command like this: /AutoBackup Directory <Exact Directory> I don't know how to get the <Exact Directory> that the player enters. This is what I have so far: Code:java String directory = "";if(args[1].equalsIgnoreCase(directory) && directory != null) {player.sendMessage(ChatColor.GREEN + "You have set your server files directory to: " + directory);} Pastebin: http://pastebin.com/VtwpkqrU I get no error when I do the command, it just doesn't do anything. I have the other arguments written out already, this is the only part i'm confused on. I want to store the directory that the player enters as a variable. Thanks!
https://docs.oracle.com/javase/7/docs/api/java/io/File.html Just to let you know that any directory referenced will be on the server's machine, not the client's. Unless they are running on the same machine.
WesJD Okay I got it now. Thanks. teej107 I know I was going to create an actual program to go along with this. Its not just a single plugin. Thanks for the reply though.