- Use book for message fixes

This commit is contained in:
KyTDK committed 2023-11-25 14:55:28 +11:00
1 parent a0c03c63e7
commit e04f24b412
5 files changed
+6 -4

No files matched your search

@@ -37,7 +37,9 @@ public class InsightGUIReport {
Consumer<InventoryClickEvent> fixAction = event -> {
insightElement.fix((Player) event.getWhoClicked());
new Insights().openInsights(event.getWhoClicked());
if (!insightElement.closeOnFix) {
new Insights().openInsights(event.getWhoClicked());
}
if (insightElement.sendDoneMessage) {
MessageUtil.sendMM(event.getWhoClicked(), NeoPerformance.getLanguageManager().getString("insights.fixAutomaticDone", null));
}
@@ -9,6 +9,7 @@ public abstract class InsightElement<T> {
public boolean canEditValue = true;
public boolean sendDoneMessage = true;
public boolean isAutomatic = true;
public boolean closeOnFix = false;
public abstract boolean isInsightApplicableOrAlreadyPresent();
@@ -18,6 +18,7 @@ public class ServerType extends InsightElement<String> {
recommendedValue = "Paper";
canFix = false;
canEditValue = false;
isAutomatic = false;
}
@Override
@@ -24,6 +24,7 @@ public class UsingAikarFlags extends InsightElement<Boolean> {
recommendedValue = true;
sendDoneMessage = false;
isAutomatic = false;
closeOnFix = true;
}
@Override
-3
View File
@@ -1,3 +0,0 @@
artifactId=NeoPerformance
groupId=com.neomechanical
version=1.15.4