Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit c8bd8dd

Browse files
committed
Added succes message
1 parent 099e1d1 commit c8bd8dd

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

dependency-reduced-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<dependency>
6363
<groupId>org.spigotmc</groupId>
6464
<artifactId>spigot-api</artifactId>
65-
<version>1.17.1-R0.1-SNAPSHOT</version>
65+
<version>1.18.1-R0.1-SNAPSHOT</version>
6666
<scope>provided</scope>
6767
<exclusions>
6868
<exclusion>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>org.spigotmc</groupId>
2121
<artifactId>spigot-api</artifactId>
22-
<version>1.17.1-R0.1-SNAPSHOT</version>
22+
<version>1.18.1-R0.1-SNAPSHOT</version>
2323
<scope>provided</scope>
2424
</dependency>
2525

src/main/java/dev/j3fftw/luckypanda/Events.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import dev.j3fftw.luckypanda.surprise.Surprise;
44
import io.github.bakedlibs.dough.data.persistent.PersistentDataAPI;
55
import io.github.bakedlibs.dough.protection.Interaction;
6+
import org.bukkit.ChatColor;
67
import org.bukkit.Location;
78
import org.bukkit.entity.Entity;
89
import org.bukkit.entity.Panda;
@@ -30,6 +31,9 @@ public void onPandaDeath(EntityDeathEvent event) {
3031
Surprise surprise = LuckyPanda.getInstance().getRandomSurprise();
3132
if (surprise != null) {
3233
surprise.process(killer, killed);
34+
killer.sendMessage(ChatColor.GREEN + "You are lucky this time!");
35+
} else {
36+
killer.sendMessage(ChatColor.GREEN + "Why the hell did you do that?");
3337
}
3438
}
3539
}

0 commit comments

Comments
 (0)