mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-04 08:33:25 +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);
|
signListeners.register(bootstrap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void saveConfig() {
|
|
||||||
try {
|
|
||||||
config.save(configFile);
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void reloadAnnouncementsFile() {
|
void reloadAnnouncementsFile() {
|
||||||
// Create if missing
|
// Create if missing
|
||||||
File file = new File(getDataFolder(), "announcements.yml");
|
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() {
|
private void registerListeners() {
|
||||||
// Bind the /ma, /mobarena commands to MACommands.
|
// Bind the /ma, /mobarena commands to MACommands.
|
||||||
commandHandler = new CommandHandler(this);
|
commandHandler = new CommandHandler(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user