mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
fix metrics
This commit is contained in:
parent
af892aabe0
commit
180459a7b9
6 changed files with 56 additions and 17 deletions
|
|
@ -6,6 +6,7 @@ import org.bukkit.configuration.file.FileConfiguration;
|
|||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import xyz.alexcrea.cuanvil.group.EnchantConflictManager;
|
||||
import xyz.alexcrea.cuanvil.group.ItemGroupManager;
|
||||
import xyz.alexcrea.cuanvil.util.MetricsUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
|
@ -24,7 +25,11 @@ public abstract class ConfigHolder {
|
|||
CONFLICT_HOLDER = new ConflictConfigHolder();
|
||||
UNIT_REPAIR_HOLDER = new UnitRepairHolder();
|
||||
|
||||
return reloadAllFromDisk(true);
|
||||
boolean result = reloadAllFromDisk(true);
|
||||
if(result){
|
||||
MetricsUtil.INSTANCE.testIfConfigIsDefault();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static boolean reloadAllFromDisk(boolean hardfail){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue