Fixing command running when disabled on Bukkit instance of kaurivpn

This commit is contained in:
Dawson Hessler
2021-08-27 12:50:41 -04:00
parent 7cb4bae972
commit 5907a9496b
@@ -72,6 +72,7 @@ public class BukkitListener extends VPNExecutor implements Listener {
.alertMessage()));
//In case the user wants to run their own commands instead of using the built in kicking
if(AntiVPN.getInstance().getConfig().runCommands())
for (String command : AntiVPN.getInstance().getConfig().commands()) {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(),
ChatColor.translateAlternateColorCodes('&',