From 0fa6857c119f5422c49336fc63ecb7e47515176b Mon Sep 17 00:00:00 2001 From: Maxlego08 Date: Fri, 24 Apr 2020 09:31:48 +0200 Subject: [PATCH] Ajout du %faction% --- plugin.yml | 2 +- src/fr/maxlego08/koth/KothLootManager.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.yml b/plugin.yml index f9bca1c..d70015c 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,6 +1,6 @@ name: zKoth author: Maxlego08 main: fr.maxlego08.koth.ZKoth -version: 1.0.0.2 +version: 1.0.0.3 softdepend: [PlaceholderAPI] commands: \ No newline at end of file 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); }