Skip to content

Commit 774ad6c

Browse files
adiadi
authored andcommitted
fix: comments
1 parent b4a7151 commit 774ad6c

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/main/java/fr/lumi/Main.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.io.BufferedReader;
2222
import java.io.InputStreamReader;
2323
import java.io.IOException;
24-
import java.util.concurrent.locks.Lock;
2524
import java.util.logging.Level;
2625

2726
import com.google.gson.JsonParser;
@@ -38,13 +37,17 @@ public final class Main extends JavaPlugin {
3837
"&e&9/--\\&6\\__| ||__/&e| &8running on bukkit - paper",
3938
""};
4039

40+
/**
41+
* Print the logo of the plugin
42+
*/
4143
private void printLogo() {
42-
for (String s : Logo)//print the logo
44+
for (String s : Logo)
4345
Bukkit.getConsoleSender().sendMessage(ChatColor.translateAlternateColorCodes('&', s));
4446
}
4547

46-
/*
47-
* modificationLock: This prevents the administrator to modify the plugin in the meantime, it could cause some issues/conflicts.
48+
/**
49+
* modificationLock: This prevents the administrator to modify the plugin in the meantime,
50+
* it could cause some issues/conflicts.
4851
*/
4952
ModificationLock modificationLock = new ModificationLock(this);
5053

@@ -92,13 +95,13 @@ public File getCommandsFile() {
9295
return commandsFile;
9396
}
9497

95-
public boolean saveCommandsFile() {
98+
public void saveCommandsFile() {
9699
try {
97100
getCommandsConfig().save(getCommandsFile());
98101
} catch (IOException ignored) {
99-
return false;
102+
Bukkit.getConsoleSender().sendMessage(
103+
ChatColor.translateAlternateColorCodes('&', config.getString("ConsolePrefix") + " &cError saving commands.yml"));
100104
}
101-
return true;
102105
}
103106

104107

0 commit comments

Comments
 (0)