mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-02-17 03:51:27 +01:00
Add coordinate placeholders to loot commands
This commit is contained in:
parent
824f674dcd
commit
3dd3a31f25
@ -101,7 +101,7 @@ public class DropUtils {
|
||||
Bukkit.getScheduler().runTask(SongodaCore.getHijackedPlugin(), () -> {
|
||||
for (String command : commands) {
|
||||
if (entity.getKiller() != null) {
|
||||
command = command.replace("%player%", entity.getKiller().getName());
|
||||
command = command.replace("%player%", entity.getKiller().getName().replace("%x%", String.valueOf((int)entity.getLocation().getX())).replace("%y%", String.valueOf((int)entity.getLocation().getY())).replace("%z%", String.valueOf((int)entity.getLocation().getZ())));
|
||||
}
|
||||
|
||||
if (!command.contains("%player%")) {
|
||||
|
Loading…
Reference in New Issue
Block a user