@@ -484,7 +484,7 @@ private void registerDefaultCommands(CommandDispatcher<FabricClientCommandSource
484484 "showslbin" , "showmedPrice" , "showseller" , "showvolume" , "showextraFields" , "showprofitPercent" ,
485485 "showprofit" , "showsellerOpenBtn" , "showlore" , "showhideSold" , "showhideManipulated" ,
486486 "privacyExtendDescriptions" , "privacyAutoStart" , "loreHighlightFilterMatch" ,
487- "loreMinProfitForHighlight" , "loreDisableHighlighting" , "sellProtectionEnabled" , "sellProtectionMaxAmount " };
487+ "loreMinProfitForHighlight" , "loreDisableHighlighting" , "sellProtectionEnabled" , "sellProtectionThreshold " };
488488
489489 for (String suggestion : suggestions ) {
490490 if (suggestion .toLowerCase ().contains (currentWord .toLowerCase ()))
@@ -543,7 +543,7 @@ public String getString() {
543543 sendChatMessage ("§cUsage: /cofl set sellProtectionEnabled <true/false>" );
544544 return 1 ;
545545 }
546- } else if (args [1 ].equals ("sellProtectionMaxAmount " )) {
546+ } else if (args [1 ].equals ("sellProtectionThreshold " )) {
547547 if (args .length >= 3 ) {
548548 try {
549549 long amount = Long .parseLong (args [2 ]);
@@ -555,7 +555,7 @@ public String getString() {
555555 return 1 ;
556556 }
557557 } else {
558- sendChatMessage ("§cUsage: /cofl set sellProtectionMaxAmount <amount>" );
558+ sendChatMessage ("§cUsage: /cofl set sellProtectionThreshold <amount>" );
559559 return 1 ;
560560 }
561561 }
@@ -565,9 +565,9 @@ public String getString() {
565565 com .coflnet .config .CoflModConfig config = com .coflnet .config .SellProtectionManager .getConfig ();
566566 sendChatMessage ("§6=== Sell Protection Settings ===" );
567567 sendChatMessage ("§7Enabled: " + (config .sellProtectionEnabled ? "§aYes" : "§cNo" ));
568- sendChatMessage ("§7Max Amount: §6" + formatCoins (config .sellProtectionMaxAmount ) + " coins" );
568+ sendChatMessage ("§7Max Amount: §6" + formatCoins (config .sellProtectionThreshold ) + " coins" );
569569 sendChatMessage ("§7Usage: §e/cofl set sellProtectionEnabled <true/false>" );
570- sendChatMessage ("§7Usage: §e/cofl set sellProtectionMaxAmount <amount>" );
570+ sendChatMessage ("§7Usage: §e/cofl set sellProtectionThreshold <amount>" );
571571 return 1 ;
572572 }
573573 }
@@ -1190,13 +1190,13 @@ private static void addSellProtectionTooltip(ItemStack stack, List<Text> lines)
11901190 lines .add (Text .literal ("§c⚠ §lSell Protection §c⚠" ));
11911191 lines .add (Text .literal ("§7Left clicks blocked if > §6" + formattedThreshold + " coins" ));
11921192 lines .add (Text .literal ("§bHold Ctrl§7 to override." ));
1193- lines .add (Text .literal ("§8/cofl set sellProtectionMaxAmount <amount>" ));
1193+ lines .add (Text .literal ("§8/cofl set sellProtectionThreshold <amount>" ));
11941194 } else if (itemName .contains ("Sell Sacks Now" ) || itemName .contains ("Sell Inventory Now" )) {
11951195 lines .add (Text .literal ("" ));
11961196 lines .add (Text .literal ("§c⚠ §lSell Protection §c⚠" ));
11971197 lines .add (Text .literal ("§7All clicks blocked if > §6" + formattedThreshold + " coins" ));
11981198 lines .add (Text .literal ("§bHold Ctrl§7 to override." ));
1199- lines .add (Text .literal ("§8/cofl set sellProtectionMaxAmount <amount>" ));
1199+ lines .add (Text .literal ("§8/cofl set sellProtectionThreshold <amount>" ));
12001200 }
12011201 } catch (Exception e ) {
12021202 System .out .println ("[CoflModClient] addSellProtectionTooltip failed: " + e .getMessage ());
0 commit comments