注册/聊天改密成功后弹出60秒actionbar凭据保存提醒
This commit is contained in:
@@ -158,6 +158,9 @@ public class ChatInputManager {
|
|||||||
.remove(name);
|
.remove(name);
|
||||||
p.sendMessage(config.msg(
|
p.sendMessage(config.msg(
|
||||||
"password_changed"));
|
"password_changed"));
|
||||||
|
// ★ 改密成功:actionbar 提示1分钟保存账号密码
|
||||||
|
mainPlugin.showCredentialSaveReminder(
|
||||||
|
p, name, msg);
|
||||||
if ("temp".equals(state.ticketTitle)) {
|
if ("temp".equals(state.ticketTitle)) {
|
||||||
p.sendMessage("§7(本次是用临时密码改的,临时密码已作废)");
|
p.sendMessage("§7(本次是用临时密码改的,临时密码已作废)");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,6 +90,8 @@ public class LoginManager {
|
|||||||
p.sendMessage(plugin.getConfig2()
|
p.sendMessage(plugin.getConfig2()
|
||||||
.msg("reg_success"));
|
.msg("reg_success"));
|
||||||
playRegisterSound(p);
|
playRegisterSound(p);
|
||||||
|
// ★ 注册成功:actionbar 提示1分钟保存刚才的账号和密码
|
||||||
|
plugin.showCredentialSaveReminder(p, name, pwd);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
org.bukkit.plugin.Plugin cy =
|
org.bukkit.plugin.Plugin cy =
|
||||||
|
|||||||
Reference in New Issue
Block a user