Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package customBungeeCordMSG;
- import java.io.IOException;
- public class Main {
- public static void main (String[] args) throws InterruptedException
- {
- System.out.println("This is an simple tool for modifing the default BungeeCoord messages!");
- 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!");
- System.out.println("Press Enter to continue!");
- try {
- System.in.read();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- Process p;
- try {
- p = Runtime.getRuntime().exec("wget https://raw.githubusercontent.com/SpigotMC/BungeeCord/master/proxy/src/main/resources/messages.properties");
- p.waitFor();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- System.out.println("Downloaded it, please edit it and Press Enter to add it into the BungeeCord.jar!");
- System.out.println("Make sure that BungeeCord is named BungeeCord.jar!");
- try {
- System.in.read();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- try {
- p = Runtime.getRuntime().exec("jar uf BungeeCord.jar messages.properties");
- p.waitFor();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- System.out.println("Finished :)!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment