Fixed wrong commands being ran on expiry
This commit is contained in:
@@ -36,7 +36,7 @@ class BoostersPlugin : LibReforgePlugin(2036, 14269, "&e") {
|
|||||||
Bukkit.broadcastMessage(expiryMessage)
|
Bukkit.broadcastMessage(expiryMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (expiryCommand in booster.expiryMessages) {
|
for (expiryCommand in booster.expiryCommands) {
|
||||||
Bukkit.dispatchCommand(
|
Bukkit.dispatchCommand(
|
||||||
Bukkit.getConsoleSender(),
|
Bukkit.getConsoleSender(),
|
||||||
expiryCommand.replace("%player%", booster.active?.player?.name ?: "")
|
expiryCommand.replace("%player%", booster.active?.player?.name ?: "")
|
||||||
|
|||||||
Reference in New Issue
Block a user