Guest User

Untitled

a guest
Aug 4th, 2016
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.47 KB | None | 0 0
  1. package customBungeeCordMSG;
  2.  
  3. import java.io.IOException;
  4.  
  5. public class Main {
  6.      public static void main (String[] args) throws InterruptedException
  7.      {
  8.          System.out.println("This is an simple tool for modifing the default BungeeCoord messages!");
  9.          System.out.println("First of all this tool will download the lastest messsages.properties from Github (with wget), make sure you have a backup of yours if you already changed something!");
  10.          System.out.println("Press Enter to continue!");
  11.          try {
  12.             System.in.read();
  13.         } catch (IOException e) {
  14.             // TODO Auto-generated catch block
  15.             e.printStackTrace();
  16.         }
  17.          Process p;
  18.         try {
  19.             p = Runtime.getRuntime().exec("wget https://raw.githubusercontent.com/SpigotMC/BungeeCord/master/proxy/src/main/resources/messages.properties");
  20.             p.waitFor();
  21.         } catch (IOException e) {
  22.             // TODO Auto-generated catch block
  23.             e.printStackTrace();
  24.         }
  25.        
  26.         System.out.println("Downloaded it, please edit it and Press Enter to add it into the BungeeCord.jar!");
  27.         System.out.println("Make sure that BungeeCord is named BungeeCord.jar!");
  28.          try {
  29.             System.in.read();
  30.         } catch (IOException e) {
  31.             // TODO Auto-generated catch block
  32.             e.printStackTrace();
  33.         }
  34.          try {
  35.                 p = Runtime.getRuntime().exec("jar uf BungeeCord.jar messages.properties");
  36.                 p.waitFor();
  37.             } catch (IOException e) {
  38.                 // TODO Auto-generated catch block
  39.                 e.printStackTrace();
  40.             }
  41.          System.out.println("Finished :)!");
  42.      }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment