Skip to content

Commit

Permalink
Updated to [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzyMar-DEV committed Jul 28, 2021
1 parent 1723359 commit bb29aee
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.fxdevelopment</groupId>
<artifactId>FxHAAnnouncer</artifactId>
<version>1.1</version>
<version>1.2</version>
<packaging>jar</packaging>

<description>Announces when a player catches a hidden ability pokemon!</description>
Expand Down Expand Up @@ -64,8 +64,9 @@
<dependency>
<groupId>com.pixelmonmod</groupId>
<artifactId>pixelmon</artifactId>
<version>1.12.2-8.1.2-universal</version>
<scope>provided</scope>
<version>1.12.2-8.2.0-universal</version>
<scope>system</scope>
<systemPath>${basedir}/libs/pixelmon-8.2.0.jar</systemPath>
</dependency>
<dependency>
<groupId>net.minecraftforge</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"OzzyMar"
},
dependencies = {
@Dependency(id = "pixelmon", version = "8.1.2"),
@Dependency(id = "pixelmon", version = "8.2.0"),
@Dependency(id = "spongeapi", version = "7.3.0")
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,13 @@ public HACatchListener(FxHAAnnouncer plugin) {
this.plugin = plugin;
}

// @SubscribeEvent
// public void onPixelmonReceived(PixelmonReceivedEvent event) {
// Player player = (Player) event.player;
// if (plugin.getPokemonUtils().hasHA(event.pokemon)) {
// Sponge.getServer().getBroadcastChannel().send(plugin.getFormattingUtils().format(
// "&d" + player.getName() + "&a caught a hidden ability &d" + event.pokemon.getSpecies() +
// " &awith the hidden ability &d" + event.pokemon.getAbilityName() + "&a."));
// }
// }
@SubscribeEvent
public void onPixelmonReceived(CaptureEvent.SuccessfulCapture event) {
if (event.player == null) return;
Player player = (Player) event.player;
if (event.getPokemon() == null) return;
Player player = (Player) event.player;
Pokemon pokemon = event.getPokemon().getPokemonData();

if (plugin.getPokemonUtils().hasHA(pokemon)) {
Sponge.getServer().getBroadcastChannel().send(plugin.getFormattingUtils().format(
"&d" + player.getName() + "&a caught a hidden ability &d" + pokemon.getSpecies() +
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"url": "",
"sourceUrl": "",
"dependencies": [
"pixelmon@8.1.2",
"pixelmon@8.2.0",
"[email protected]"
],
"requiredMods": [
"pixelmon@8.1.2",
"pixelmon@8.2.0",
"[email protected]"
]
}
Expand Down

0 comments on commit bb29aee

Please sign in to comment.