Skip to content

Commit 3ca5e30

Browse files
committed
Better lrattack message
1 parent bf22c9c commit 3ca5e30

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/solarrabbit/largeraids/command/RaiderAttackCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.solarrabbit.largeraids.command;
22

33
import com.solarrabbit.largeraids.LargeRaids;
4-
import com.solarrabbit.largeraids.nms.AbstractRaiderWrapper;
54
import com.solarrabbit.largeraids.raid.LargeRaid;
65
import com.solarrabbit.largeraids.raid.RaidManager;
76

@@ -77,7 +76,8 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
7776
if (!largeRaid.get().addAttackGoal(prio, !thruWalls, entityClass))
7877
sender.sendMessage(ChatColor.RED + this.plugin.getMessage("raider-attack.invalid-entity-class"));
7978
else
80-
sender.sendMessage(ChatColor.GREEN + this.plugin.getMessage("raider-attack.attack-goal-set"));
79+
sender.sendMessage(ChatColor.GREEN + String.format(this.plugin.getMessage("raider-attack.attack-goal-set"),
80+
entityClass.getSimpleName()));
8181

8282
return true;
8383
}

src/main/resources/messages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,4 @@ raider-attack:
7676
class-not-found: The specified class was not found!
7777
invalid-entity-class: The specified class is not of LivingEntity type!
7878
attack-goal-set: All raiders of the current wave will now target the specified entity type.
79+
attack-goal-set: All raiders of the current wave will now target entity %s.

0 commit comments

Comments
 (0)