Skip to content

Commit 20cb8a5

Browse files
committed
[Release] changes
1 parent a3d2fae commit 20cb8a5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/main/java/com/learnwithminecraft/urm/listener/ProjectileListener.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,15 @@ private void onProjectileHit(ProjectileHitEvent event) {
7979
double time = (currentTime - startTime) / 1000d;
8080
double velocity = (distance / time);
8181

82-
player.sendMessage(TextFormat.AQUA + String.format("The velocity of the projectile was %s blocks/second", velocity));
82+
player.sendMessage(TextFormat.GOLD + String.format("The velocity of the projectile was %s blocks/second", velocity));
8383
player.sendMessage(TextFormat.GOLD + String.format("The time to hit the projectile with a block was %s seconds", time));
84-
player.sendMessage(TextFormat.LIGHT_PURPLE + String.format("The distance traveled by the projectile was %s blocks", distance));
84+
player.sendMessage(TextFormat.GOLD + String.format("The distance traveled by the projectile was %s blocks", distance));
85+
86+
Date date = new Date();
87+
int x = (int) currentVector3.getX();
88+
int y = (int) currentVector3.getY();
89+
int z = (int) currentVector3.getZ();
90+
91+
player.sendMessage(TextFormat.GREEN + String.format("The projectile you threw fell %s in (X: %s, Y: %s, Z: %s)", date, x, y, z));
8592
}
8693
}

0 commit comments

Comments
 (0)