mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-05-31 09:31:54 +00:00
Fixing command running when disabled on Bukkit instance of kaurivpn
This commit is contained in:
@@ -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('&',
|
||||
|
||||
Reference in New Issue
Block a user