mirror of
https://github.com/Maxlego08/zKoth.git
synced 2024-11-30 13:14:09 +01:00
Ajout du %faction%
This commit is contained in:
parent
d46bd90a1b
commit
0fa6857c11
@ -1,6 +1,6 @@
|
|||||||
name: zKoth
|
name: zKoth
|
||||||
author: Maxlego08
|
author: Maxlego08
|
||||||
main: fr.maxlego08.koth.ZKoth
|
main: fr.maxlego08.koth.ZKoth
|
||||||
version: 1.0.0.2
|
version: 1.0.0.3
|
||||||
softdepend: [PlaceholderAPI]
|
softdepend: [PlaceholderAPI]
|
||||||
commands:
|
commands:
|
@ -107,6 +107,7 @@ public class KothLootManager extends ZUtils {
|
|||||||
|
|
||||||
String finalCommand = command.replace("%player%", player.getName());
|
String finalCommand = command.replace("%player%", player.getName());
|
||||||
finalCommand = finalCommand.replace("%name%", koth.getName());
|
finalCommand = finalCommand.replace("%name%", koth.getName());
|
||||||
|
finalCommand = finalCommand.replace("%faction%", factionListener.getFactionTag(player));
|
||||||
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), finalCommand);
|
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), finalCommand);
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -115,6 +116,7 @@ public class KothLootManager extends ZUtils {
|
|||||||
|
|
||||||
String finalCommand = command.replace("%player%", player.getName());
|
String finalCommand = command.replace("%player%", player.getName());
|
||||||
finalCommand = finalCommand.replace("%name%", koth.getName());
|
finalCommand = finalCommand.replace("%name%", koth.getName());
|
||||||
|
finalCommand = finalCommand.replace("%faction%", factionListener.getFactionTag(player));
|
||||||
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), finalCommand);
|
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), finalCommand);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user