mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-26 20:45:17 +01:00
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:
parent
2404bb478d
commit
c4362474a1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user