loot tracker: add remember loot option
This commit is contained in:
@@ -81,6 +81,16 @@ public interface LootTrackerConfig extends Config
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "syncPanel",
|
||||||
|
name = "Remember loot",
|
||||||
|
description = "Saves loot between client sessions"
|
||||||
|
)
|
||||||
|
default boolean syncPanel()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "ignoredEvents",
|
keyName = "ignoredEvents",
|
||||||
name = "Ignored Loot Sources",
|
name = "Ignored Loot Sources",
|
||||||
|
|||||||
@@ -414,7 +414,6 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
log.debug("Profile changed to {}", profileKey);
|
|
||||||
switchProfile(profileKey);
|
switchProfile(profileKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -429,6 +428,11 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
|
|
||||||
log.debug("Switched to profile {}", profileKey);
|
log.debug("Switched to profile {}", profileKey);
|
||||||
|
|
||||||
|
if (!config.syncPanel())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int drops = 0;
|
int drops = 0;
|
||||||
List<ConfigLoot> loots = new ArrayList<>();
|
List<ConfigLoot> loots = new ArrayList<>();
|
||||||
Instant old = Instant.now().minus(MAX_AGE);
|
Instant old = Instant.now().minus(MAX_AGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user