diff --git a/src/main/java/com/laytonsmith/commandhelper/CommandHelperPlugin.java b/src/main/java/com/laytonsmith/commandhelper/CommandHelperPlugin.java index e8c7dc431..5992e2125 100644 --- a/src/main/java/com/laytonsmith/commandhelper/CommandHelperPlugin.java +++ b/src/main/java/com/laytonsmith/commandhelper/CommandHelperPlugin.java @@ -71,6 +71,7 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.command.ConsoleCommandSender; +import org.bukkit.command.RemoteConsoleCommandSender; import org.bukkit.entity.Player; import org.bukkit.event.Event; import org.bukkit.event.EventException; @@ -587,7 +588,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, if(sender instanceof Player) { PlayerCommandPreprocessEvent pcpe = new PlayerCommandPreprocessEvent((Player) sender, command); playerListener.onPlayerCommandPreprocess(pcpe); - } else if(sender instanceof ConsoleCommandSender + } else if(sender instanceof ConsoleCommandSender || sender instanceof RemoteConsoleCommandSender || sender instanceof BlockCommandSender || sender instanceof CommandMinecart) { // Console commands and command blocks/minecarts all fire the same event, so pass them to the // event handler that would get them if they would not have started with "/runalias".