Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Sep 23, 2023
1 parent fdefdb8 commit cf01767
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ public void onInventoryClick(InventoryClickEvent event) {
event.setCancelled(true);
closeReasonMap.put(player, "verified");
player.closeInventory();
// player.sendMessage("§a验证完成");
messages.send(player, MessageKey.GUI_CAPTCHA_SUCCESS);
player.sendMessage("§a验证完成");
} else {
player.sendMessage("§c验证失败,你还有" + timesLeft + "§c次机会");
timesLeft--;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/fr/xephi/authme/message/MessageKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* Keys for translatable messages managed by {@link Messages}.
*/
public enum MessageKey {
/** Successfully verified! */
GUI_CAPTCHA_SUCCESS("3rdpartyfeature.gui_captcha.success"),
/** In order to use this command you must be authenticated! */
DENIED_COMMAND("error.denied_command"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ final class OldMessageKeysMigrater {

@VisibleForTesting
static final Map<MessageKey, String> KEYS_TO_OLD_PATH = ImmutableMap.<MessageKey, String>builder()
.put(MessageKey.GUI_CAPTCHA_SUCCESS, "gui_captcha_verified")
.put(MessageKey.LOGIN_SUCCESS, "login")
.put(MessageKey.ERROR, "error")
.put(MessageKey.DENIED_COMMAND, "denied_command")
Expand Down

0 comments on commit cf01767

Please sign in to comment.