Created
September 1, 2011 08:40
-
-
Save anonymous/1185730 to your computer and use it in GitHub Desktop.
Direct Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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