Skip to content

Commit

Permalink
取消 /cp 指令的邮箱验证
Browse files Browse the repository at this point in the history
  • Loading branch information
Sattera committed Mar 28, 2023
1 parent d33f838 commit 0e1e65c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -654,15 +654,15 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.8.1</version> <!-- Log4J version bundled in 1.12.2 -->
<version>2.20.0</version> <!-- Log4J version bundled in 1.12.2 -->
<scope>provided</scope>
</dependency>

<!-- Database Connection Pool -->
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>4.0.3</version> <!-- Latest java 8 release -->
<version>5.0.1</version> <!-- Latest java 8 release -->
<optional>true</optional>
<exclusions>
<exclusion>
Expand All @@ -675,7 +675,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.36</version> <!-- We can't update to 2.x as long as we use HikariCP for java 8 -->
<version>2.0.5</version> <!-- We can't update to 2.x as long as we use HikariCP for java 8 -->
<optional>true</optional>
</dependency>

Expand All @@ -691,13 +691,13 @@
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.0.31</version>
<version>8.0.32</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>3.0.8</version>
<version>3.1.2</version>
<optional>true</optional>
</dependency>

Expand Down Expand Up @@ -980,7 +980,7 @@
<dependency>
<groupId>at.favre.lib</groupId>
<artifactId>bcrypt</artifactId>
<version>0.9.0</version>
<version>0.10.2</version>
<optional>true</optional>
</dependency>

Expand All @@ -1002,7 +1002,7 @@
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.5.0</version>
<version>42.5.4</version>
<optional>true</optional>
<exclusions>
<exclusion>
Expand Down Expand Up @@ -1032,7 +1032,7 @@
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
<version>4.8.1</version>
<version>5.2.0</version>
<exclusions>
<exclusion>
<artifactId>hamcrest-core</artifactId>
Expand All @@ -1045,7 +1045,7 @@
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
<version>3.26.0</version>
<version>3.32.0</version>
<scope>test</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ public void runCommand(Player player, List<String> arguments) {
return;
}

// Check if the user has been verified or not
if (codeManager.isVerificationRequired(player)) {
codeManager.codeExistOrGenerateNew(name);
commonService.send(player, MessageKey.VERIFICATION_CODE_REQUIRED);
return;
}

String oldPassword = arguments.get(0);
String newPassword = arguments.get(1);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fr/xephi/authme/listener/PlayerListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ public void onPlayerInventoryClick(InventoryClickEvent event) {
@EventHandler(priority = EventPriority.LOWEST)
public void onSwitchHand(PlayerSwapHandItemsEvent event) {
Player player = event.getPlayer();
if (!player.hasPermission("keybindings.use") || !player.isSneaking())
if (!player.isSneaking() || !player.hasPermission("keybindings.use"))
return;
event.setCancelled(true);
Bukkit.dispatchCommand(event.getPlayer(), "help");
Expand Down

0 comments on commit 0e1e65c

Please sign in to comment.