Rearrange methods.

This is just to group reloadAnnouncementsFile() with reloadSigns() for an attempt at better cohesion in the logical structure of the code.
This commit is contained in:
Andreas Troelsen 2018-06-16 18:25:23 +02:00
parent 2404bb478d
commit c4362474a1

View File

@ -192,15 +192,6 @@ public class MobArena extends JavaPlugin
signListeners.register(bootstrap);
}
@Override
public void saveConfig() {
try {
config.save(configFile);
} catch (IOException e) {
e.printStackTrace();
}
}
void reloadAnnouncementsFile() {
// Create if missing
File file = new File(getDataFolder(), "announcements.yml");
@ -228,6 +219,15 @@ public class MobArena extends JavaPlugin
}
}
@Override
public void saveConfig() {
try {
config.save(configFile);
} catch (IOException e) {
e.printStackTrace();
}
}
private void registerListeners() {
// Bind the /ma, /mobarena commands to MACommands.
commandHandler = new CommandHandler(this);