Skip to content

Commit

Permalink
删除冗余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
lRENyaaa committed Nov 19, 2022
1 parent 88bead3 commit 09ab599
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ren.rymc</groupId>
<artifactId>tpa</artifactId>
<version>1.2.3</version>
<version>1.2.4</version>
<packaging>jar</packaging>

<name>Tpa</name>
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/ren/rymc/tpa/Tpa.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,6 @@ public List<String> onTabComplete(CommandSender sender, Command command, String
return null;
}

@EventHandler( priority = EventPriority.LOWEST )
public void TpaMainMenuTask(PlayerCommandPreprocessEvent event) {
UUID uuid = event.getPlayer().getUniqueId();
if (!FloodgateApi.getInstance().isFloodgatePlayer(uuid)) return;
String message = event.getMessage().trim().toLowerCase(Locale.ROOT);
String[] messages = message.split(" ");
if (!messages[0].equals("/tpaui")) return;
if (Bukkit.getOnlinePlayers().size() <= 1) return;
event.setCancelled(true);
sendTpaMenu(event.getPlayer());
}

@EventHandler( priority = EventPriority.LOWEST )
public void TpaCompletionAndApplication(PlayerCommandPreprocessEvent event) {
String message = event.getMessage().trim().toLowerCase(Locale.ROOT);
Expand Down

0 comments on commit 09ab599

Please sign in to comment.