Skip to content

Commit

Permalink
Code Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Sep 23, 2023
1 parent cf01767 commit 66b2bf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/fr/xephi/authme/listener/GuiCaptchaHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
ItemMeta meta = item.getItemMeta();
try {
if (meta != null) {
meta.setDisplayName(a我是" + "§a真人");
meta.setDisplayName(a我是真人");
item.setItemMeta(meta);
// goldBlock.setItemMeta(meta);
}
Expand Down Expand Up @@ -166,7 +166,8 @@ public void onPlayerJoin(PlayerJoinEvent event) {
long timeOut = AuthMe.settings.getProperty(SecuritySettings.GUI_CAPTCHA_TIMEOUT);
if (AuthMe.settings.getProperty(SecuritySettings.GUI_CAPTCHA_TIMEOUT) > AuthMe.settings.getProperty(RestrictionSettings.TIMEOUT)){
Bukkit.getScheduler().runTask(this.plugin,() -> {
Bukkit.getLogger().warning("AuthMe detected that your GUI captcha timeout seconds(" + AuthMe.settings.getProperty(SecuritySettings.GUI_CAPTCHA_TIMEOUT) + ") is bigger than the Login timeout seconds(" + AuthMe.settings.getProperty(RestrictionSettings.TIMEOUT) + "). To prevent issues, we will make the GUI captcha follow the Login timeout seconds, please check and modify your config.");
Bukkit.getLogger().warning("AuthMe detected that your GUI captcha timeout seconds(" + AuthMe.settings.getProperty(SecuritySettings.GUI_CAPTCHA_TIMEOUT) + ") is bigger than the Login timeout seconds(" +
AuthMe.settings.getProperty(RestrictionSettings.TIMEOUT) + "). To prevent issues, we will let the GUI captcha follow the Login timeout seconds, please check and modify your config.");
});
timeOut = AuthMe.settings.getProperty(RestrictionSettings.TIMEOUT);
}
Expand Down

0 comments on commit 66b2bf8

Please sign in to comment.