diff --git a/plugin.yml b/plugin.yml index 9bca7e4..80dbe3a 100644 --- a/plugin.yml +++ b/plugin.yml @@ -3,4 +3,4 @@ author: Maxlego08 main: fr.maxlego08.koth.ZKoth version: 1.0.0.4 softdepend: [PlaceholderAPI] -commands: \ No newline at end of file +commands: diff --git a/src/fr/maxlego08/koth/KothLootManager.java b/src/fr/maxlego08/koth/KothLootManager.java index 1671416..deac3a9 100644 --- a/src/fr/maxlego08/koth/KothLootManager.java +++ b/src/fr/maxlego08/koth/KothLootManager.java @@ -107,6 +107,7 @@ public class KothLootManager extends ZUtils { String finalCommand = command.replace("%player%", player.getName()); finalCommand = finalCommand.replace("%name%", koth.getName()); + finalCommand = finalCommand.replace("%faction%", factionListener.getFactionTag(player)); Bukkit.dispatchCommand(Bukkit.getConsoleSender(), finalCommand); }); @@ -115,6 +116,7 @@ public class KothLootManager extends ZUtils { String finalCommand = command.replace("%player%", player.getName()); finalCommand = finalCommand.replace("%name%", koth.getName()); + finalCommand = finalCommand.replace("%faction%", factionListener.getFactionTag(player)); Bukkit.dispatchCommand(Bukkit.getConsoleSender(), finalCommand); }