Skip to content

Commit

Permalink
Merge pull request #36 from Grzybol/zephyr-patches
Browse files Browse the repository at this point in the history
- fix
  • Loading branch information
Grzybol authored Apr 4, 2024
2 parents c833de3 + 137287f commit 89c41d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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>betterbox.mine.game</groupId>
<artifactId>BetterElo</artifactId>
<version>4.0.5-SNAPSHOT</version>
<version>4.0.6-SNAPSHOT</version>
<packaging>jar</packaging>

<name>BetterElo</name>
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/betterbox/mine/game/betterelo/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,12 @@ public void onPlayerInteract(PlayerInteractEvent event) {
return;
}
}
hasZephyrLore(player);
pluginLogger.log(PluginLogger.LogLevel.ZEPHYR, "Event.checking canUseZephyr");
if(canUseZephyr(player)) {
pluginLogger.log(PluginLogger.LogLevel.ZEPHYR, "Event.canUseZephyr passed");
hasZephyrLore(player);

}
}


Expand Down Expand Up @@ -651,6 +656,7 @@ public boolean hasZephyrLore(Player player) {
if (parts.length == 2){
int power = Integer.parseInt(parts[1]);
applyBoosterEffect(player,power);
lastZephyrUsage.put(player, System.currentTimeMillis());
}
return true;
}
Expand Down

0 comments on commit 89c41d9

Please sign in to comment.