feat: 完善稳定性并重构潜影盒安全机制

This commit is contained in:
2026-08-02 03:36:19 +08:00
parent d9b1312e0c
commit 92ef7f6030
35 changed files with 1167 additions and 229 deletions
@@ -17,10 +17,13 @@ public final class TpIgnoreCommand extends BaseCommand {
return true;
}
boolean ignoring = manager.toggleIgnoringRequests(player);
player.sendMessage(getLang().getPrefixedComponent(ignoring
? "tpa.messages.ignore-enabled"
: "tpa.messages.ignore-disabled"));
TeleportRequestManager.ToggleIgnoreResult result = manager.toggleIgnoringRequests(player);
String messagePath = switch (result) {
case ENABLED -> "tpa.messages.ignore-enabled";
case DISABLED -> "tpa.messages.ignore-disabled";
case SAVE_FAILED -> "tpa.messages.ignore-save-failed";
};
player.sendMessage(getLang().getPrefixedComponent(messagePath));
return true;
}
}