From 3be066339070f145a9267d53f726679bd8912caa Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 29 Apr 2022 23:08:25 +0100 Subject: [PATCH] Fixed wrong commands being ran on expiry --- .../src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt index fd750e7..3d593b9 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt @@ -36,7 +36,7 @@ class BoostersPlugin : LibReforgePlugin(2036, 14269, "&e") { Bukkit.broadcastMessage(expiryMessage) } - for (expiryCommand in booster.expiryMessages) { + for (expiryCommand in booster.expiryCommands) { Bukkit.dispatchCommand( Bukkit.getConsoleSender(), expiryCommand.replace("%player%", booster.active?.player?.name ?: "")