mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 19:44:15 +02:00
Changes for new Bukkit
This commit is contained in:
@@ -159,7 +159,7 @@ public class GroupManager extends JavaPlugin {
|
||||
}
|
||||
};
|
||||
scheduler = new ScheduledThreadPoolExecutor(1);
|
||||
int minutes = getConfig().getSaveInterval();
|
||||
int minutes = getGMConfig().getSaveInterval();
|
||||
scheduler.scheduleAtFixedRate(commiter, minutes, minutes, TimeUnit.MINUTES);
|
||||
GroupManager.logger.info("Scheduled Data Saving is set for every " + minutes + " minutes!");
|
||||
}
|
||||
@@ -1749,7 +1749,7 @@ public class GroupManager extends JavaPlugin {
|
||||
/**
|
||||
* @return the config
|
||||
*/
|
||||
public GMConfiguration getConfig() {
|
||||
public GMConfiguration getGMConfig() {
|
||||
return config;
|
||||
}
|
||||
|
||||
|
@@ -111,7 +111,7 @@ public class WorldsHolder {
|
||||
@SuppressWarnings("rawtypes")
|
||||
public void mirrorSetUp() {
|
||||
mirrors.clear();
|
||||
Map<String, Object> mirrorsMap = plugin.getConfig().getMirrorsMap();
|
||||
Map<String, Object> mirrorsMap = plugin.getGMConfig().getMirrorsMap();
|
||||
if (mirrorsMap != null) {
|
||||
for (String source : mirrorsMap.keySet()) {
|
||||
// Make sure all non mirrored worlds have a set of data files.
|
||||
|
Reference in New Issue
Block a user