注册/聊天改密成功后弹出60秒actionbar凭据保存提醒

This commit is contained in:
youpaishidifu
2026-09-26 12:23:34 +08:00
parent 8069070219
commit 51e56ec85e
2 changed files with 5 additions and 0 deletions
@@ -158,6 +158,9 @@ public class ChatInputManager {
.remove(name);
p.sendMessage(config.msg(
"password_changed"));
// ★ 改密成功:actionbar 提示1分钟保存账号密码
mainPlugin.showCredentialSaveReminder(
p, name, msg);
if ("temp".equals(state.ticketTitle)) {
p.sendMessage("§7(本次是用临时密码改的,临时密码已作废)");
}
@@ -90,6 +90,8 @@ public class LoginManager {
p.sendMessage(plugin.getConfig2()
.msg("reg_success"));
playRegisterSound(p);
// ★ 注册成功:actionbar 提示1分钟保存刚才的账号和密码
plugin.showCredentialSaveReminder(p, name, pwd);
try {
org.bukkit.plugin.Plugin cy =