Skip to content

Instantly share code, notes, and snippets.

Created September 1, 2011 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1185730 to your computer and use it in GitHub Desktop.
Save anonymous/1185730 to your computer and use it in GitHub Desktop.
Direct Install
if (args[0].equals(new String("di"))) {
File file = new File("./plugins/lick/lickinstalls/"+args[1]+".yml");
URL downloadurl = null;
try {
downloadurl = new URL("http://websetgo.net/bukkitgetyaml.php?plugin="+args[1]);
} catch (MalformedURLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
download(log,downloadurl,file);
config = new Configuration(file);
config.load();
sender.sendMessage(config.getString("beforeInstall.message").replace("{content=", "").replace("}", ""));
} catch (IOException e) {
e.printStackTrace();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment