Skip to content

Commit 1682750

Browse files
committed
removed unnecessary print lines
1 parent eee8c1c commit 1682750

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

‎EnableBot.java‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
2323
try {
2424
File myObj = new File("chatsync-data.txt");
2525
if (myObj.createNewFile()) {
26-
System.out.println("File created: " + myObj.getName());
2726
FileWriter myWriter = new FileWriter("chatsync-data.txt");
2827
myWriter.write(args[0] + " " + args[1] + " " + args[2]);
2928
myWriter.close();
3029
Main.cacheFileArgs = args[0] + " " + args[1] + " " + args[2];
31-
System.out.println("Successfully wrote to the file.");
3230
try {
3331
Main.jda = JDABuilder.createDefault(args[0]).build();
3432
Main.jda.getPresence().setStatus(OnlineStatus.ONLINE);
@@ -50,11 +48,9 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
5048
e.printStackTrace();
5149
}
5250
} else {
53-
System.out.println("File already exists.");
5451
sender.sendMessage("A bot is already configured for this server");
5552
}
5653
} catch (IOException e) {
57-
System.out.println("An error occurred.");
5854
e.printStackTrace();
5955
}
6056
return true;

‎Main.java‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class Main extends JavaPlugin {
2222
public static String cacheFileArgs;
2323

2424
public static void main(String[] args) throws LoginException {
25-
System.out.println(" ");
25+
2626
}
2727

2828
@Override
@@ -62,14 +62,12 @@ public void onEnable(){
6262
myReader.close();
6363
Bukkit.broadcastMessage("[ChatSync] Connection to Discord Successful");
6464
} catch (FileNotFoundException e) {
65-
System.out.println("An error occurred.");
65+
Bukkit.broadcastMessage("[ChatSync] Could not connect to Discord");
6666
e.printStackTrace();
6767
}
6868
} catch (LoginException e) {
6969
e.printStackTrace();
7070
}
71-
72-
System.out.println("Online");
7371
}
7472

7573
@Override
@@ -82,6 +80,5 @@ public void onDisable() {
8280

8381
TextChannel textChannel = jda.getGuildById(readerArgs[1]).getTextChannelsByName(readerArgs[2],true).get(0);
8482
textChannel.sendMessage(eb.build()).queue();
85-
System.out.println("Shutting Down...");
8683
}
8784
}

0 commit comments

Comments
 (0)