mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-26 20:45:17 +01:00
Reload announcements when reloading the config-file.
The announcements file loading method is renamed to indicate that it's also meant for re-loading, and the access modifier is changed from private to package-private to allow ArenaMasterImpl to call it. Closes #462
This commit is contained in:
parent
61e9ac7635
commit
a834246cbd
@ -696,6 +696,7 @@ public class ArenaMasterImpl implements ArenaMaster
|
||||
config = plugin.getConfig();
|
||||
initialize();
|
||||
plugin.reloadSigns();
|
||||
plugin.reloadAnnouncementsFile();
|
||||
if (wasEnabled) setEnabled(true);
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ public class MobArena extends JavaPlugin
|
||||
saveConfig();
|
||||
|
||||
// Initialize announcements-file
|
||||
loadAnnouncementsFile();
|
||||
reloadAnnouncementsFile();
|
||||
|
||||
// Load boss abilities
|
||||
loadAbilities();
|
||||
@ -201,7 +201,7 @@ public class MobArena extends JavaPlugin
|
||||
}
|
||||
}
|
||||
|
||||
private void loadAnnouncementsFile() {
|
||||
void reloadAnnouncementsFile() {
|
||||
// Create if missing
|
||||
File file = new File(getDataFolder(), "announcements.yml");
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user